Class: Momento::Error::GrpcDetails
- Inherits:
-
Object
- Object
- Momento::Error::GrpcDetails
- Defined in:
- lib/momento/error/grpc_details.rb
Overview
Details about a GRPC error. Returned by ‘response.error.transport_details.grpc`
Instance Attribute Summary collapse
-
#grpc ⇒ GRPC::BadStatus
readonly
The GRPC exception.
Instance Method Summary collapse
-
#code ⇒ Integer
The GRPC numeric error code.
-
#details ⇒ String
Any details about the error provided by GRPC.
-
#initialize(grpc) ⇒ GrpcDetails
constructor
A new instance of GrpcDetails.
-
#metadata ⇒ Hash
Any metadata associated with the GRPC error.
Constructor Details
#initialize(grpc) ⇒ GrpcDetails
Returns a new instance of GrpcDetails.
15 16 17 |
# File 'lib/momento/error/grpc_details.rb', line 15 def initialize(grpc) @grpc = grpc end |
Instance Attribute Details
#grpc ⇒ GRPC::BadStatus (readonly)
Returns the GRPC exception.
12 13 14 |
# File 'lib/momento/error/grpc_details.rb', line 12 def grpc @grpc end |
Instance Method Details
#code ⇒ Integer
The GRPC numeric error code
21 22 23 |
# File 'lib/momento/error/grpc_details.rb', line 21 def code grpc.code end |
#details ⇒ String
Any details about the error provided by GRPC
27 28 29 |
# File 'lib/momento/error/grpc_details.rb', line 27 def details grpc.details end |
#metadata ⇒ Hash
Any metadata associated with the GRPC error
33 34 35 |
# File 'lib/momento/error/grpc_details.rb', line 33 def grpc. end |