Exception: Gruf::Client::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Gruf::Client::Error
- Defined in:
- lib/gruf/client.rb
Overview
Represents an error that was returned from the server’s trailing metadata. Used as a custom exception object that is instead raised in the case of the service returning serialized error data, as opposed to the normal GRPC::BadStatus error
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Error The deserialized error.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
Initialize the client error.
Constructor Details
#initialize(error) ⇒ Error
Initialize the client error
50 51 52 |
# File 'lib/gruf/client.rb', line 50 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns error The deserialized error.
43 44 45 |
# File 'lib/gruf/client.rb', line 43 def error @error end |