1.5.0 (latest) 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.26.0 0.25.0 0.24.0 Reference documentation and code samples for the gapic-common class Gapic::Rest::ResumableUpload::UploadCancelledError.

Raised when the upload session was cancelled and will accept no further data.


Reachable today only for a cancellation this client did not request: the server reports an
established session as cancelled while a chunk, a finalize, or a recovery query is in flight,
because another process, another client, or a server-side policy ended it. Client-initiated
cancellation is not part of the public API yet, and this error is also what that will raise.

<br />

Deliberately does not include [HasResumeHandle](https://docs.cloud.google.com/ruby/docs/reference/gapic-common/latest/Gapic-Rest-ResumableUpload-HasResumeHandle "Gapic::Rest::ResumableUpload::HasResumeHandle (module)"). A cancelled session is gone server-side, so there
is nothing to resume and retrying against it cannot succeed; a new upload must be started instead.

## Inherits

- [Gapic::Common::Error](https://docs.cloud.google.com/ruby/docs/reference/gapic-common/latest/Gapic-Common-Error)

## Methods

### #initialize

    def initialize(message = "Upload session was cancelled") -> UploadCancelledError

Initializes a new UploadCancelledError.
**Parameter**

- **message** (String) --- Cancellation message
**Returns**

- ([UploadCancelledError](https://docs.cloud.google.com/ruby/docs/reference/gapic-common/latest/Gapic-Rest-ResumableUpload-UploadCancelledError)) --- a new instance of UploadCancelledError