Exception: Tina4Ultipa::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Tina4Ultipa::Error
- Defined in:
- lib/tina4_ultipa/errors.rb
Overview
A gqldb server or protocol error. Writes and bad statements fail LOUD (raise),
never a falsy return - the framework's graph layer relies on this.
code is the gRPC status name when known.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause_error ⇒ Object
readonly
The wrapped lower-level exception (gRPC error), when there is one.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code: nil, cause: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil, cause: nil) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 |
# File 'lib/tina4_ultipa/errors.rb', line 10 def initialize(, code: nil, cause: nil) super() @code = code @cause_error = cause end |
Instance Attribute Details
#cause_error ⇒ Object (readonly)
The wrapped lower-level exception (gRPC error), when there is one.
17 18 19 |
# File 'lib/tina4_ultipa/errors.rb', line 17 def cause_error @cause_error end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/tina4_ultipa/errors.rb', line 8 def code @code end |