Exception: GRPC::Cancelled
- Defined in:
- src/ruby/lib/grpc/errors.rb
Overview
GRPC status code corresponding to status CANCELLED
Constant Summary
Constants included from GRPC::Core::StatusCodes
GRPC::Core::StatusCodes::ABORTED, GRPC::Core::StatusCodes::ALREADY_EXISTS, GRPC::Core::StatusCodes::CANCELLED, GRPC::Core::StatusCodes::DATA_LOSS, GRPC::Core::StatusCodes::DEADLINE_EXCEEDED, GRPC::Core::StatusCodes::FAILED_PRECONDITION, GRPC::Core::StatusCodes::INTERNAL, GRPC::Core::StatusCodes::INVALID_ARGUMENT, GRPC::Core::StatusCodes::NOT_FOUND, GRPC::Core::StatusCodes::OK, GRPC::Core::StatusCodes::OUT_OF_RANGE, GRPC::Core::StatusCodes::PERMISSION_DENIED, GRPC::Core::StatusCodes::RESOURCE_EXHAUSTED, GRPC::Core::StatusCodes::UNAUTHENTICATED, GRPC::Core::StatusCodes::UNAVAILABLE, GRPC::Core::StatusCodes::UNIMPLEMENTED, GRPC::Core::StatusCodes::UNKNOWN
Instance Attribute Summary
Attributes inherited from BadStatus
#code, #debug_error_string, #details, #metadata
Instance Method Summary collapse
-
#initialize(details = 'unknown cause', metadata = {}, debug_error_string = nil) ⇒ Cancelled
constructor
A new instance of Cancelled.
Methods inherited from BadStatus
new_status_exception, #to_rpc_status, #to_status
Constructor Details
#initialize(details = 'unknown cause', metadata = {}, debug_error_string = nil) ⇒ Cancelled
Returns a new instance of Cancelled.
120 121 122 123 124 125 |
# File 'src/ruby/lib/grpc/errors.rb', line 120 def initialize(details = 'unknown cause', = {}, debug_error_string = nil) super(Core::StatusCodes::CANCELLED, details, , debug_error_string) end |