Exception: ZeroRuby::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ZeroRuby::Error
- Defined in:
- lib/zero_ruby/errors.rb
Direct Known Subclasses
CoercionError, InternalError, MutationAlreadyProcessedError, MutationNotFoundError, OutOfOrderMutationError, ParseError, TransactNotCalledError, TransactionError, UnsupportedPushVersionError, ValidationError
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#error_type ⇒ Object
Returns the Zero protocol error type string.
-
#initialize(message = nil, details: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, details: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/zero_ruby/errors.rb', line 7 def initialize( = nil, details: nil) @details = details super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
5 6 7 |
# File 'lib/zero_ruby/errors.rb', line 5 def details @details end |
Instance Method Details
#error_type ⇒ Object
Returns the Zero protocol error type string
13 14 15 |
# File 'lib/zero_ruby/errors.rb', line 13 def error_type "app" end |