Exception: Protocol::GRPC::Cancelled

Inherits:
Error
  • Object
show all
Defined in:
lib/protocol/grpc/error.rb

Overview

Represents a cancelled gRPC operation.

Instance Attribute Summary

Attributes inherited from Error

#details, #metadata, #status_code

Instance Method Summary collapse

Methods inherited from Error

error_class_for_status, for

Constructor Details

#initialize(message = nil, **options) ⇒ Cancelled

Initialize a cancelled error.

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :details (Object | Nil)

    Optional error details

  • :metadata (Hash)

    Custom metadata



62
63
64
# File 'lib/protocol/grpc/error.rb', line 62

def initialize(message = nil, **options)
	super(Status::CANCELLED, message, **options)
end