Exception: Gruf::Client::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Gruf::Client::Error
- Defined in:
- lib/gruf/client/error.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
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
Initialize the client error.
Constructor Details
#initialize(error) ⇒ Error
Initialize the client error
35 36 37 38 |
# File 'lib/gruf/client/error.rb', line 35 def initialize(error) @error = error super end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
28 29 30 |
# File 'lib/gruf/client/error.rb', line 28 def error @error end |