# Cloud Pub/Sub API - Class Google::Cloud::PubSub::AsyncPublisherStopped (v3.3.0)

3.3.0 (latest) 3.2.1 3.1.1 3.0.3 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.1 2.17.0 2.16.0 2.15.5 2.14.0 2.12.1 2.11.0 2.10.0 2.9.2 Reference documentation and code samples for the Cloud Pub/Sub API class Google::Cloud::PubSub::AsyncPublisherStopped.

Indicates that the [AsyncPublisher](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-pubsub/latest/Google-Cloud-PubSub-AsyncPublisher "Google::Cloud::PubSub::AsyncPublisher (class)") has been stopped and cannot accept
messages to publish.

## Inherits

- Google::Cloud::Error

## Methods

### #initialize

    def initialize(message = "Can't publish when stopped.") -> AsyncPublisherStopped

**Returns**

- ([AsyncPublisherStopped](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-pubsub/latest/Google-Cloud-PubSub-AsyncPublisherStopped)) --- a new instance of AsyncPublisherStopped