Exception: MaxBotApi::SerializationError
- Defined in:
- lib/max_bot_api/errors.rb
Overview
Raised when serialization or parsing fails.
Instance Attribute Summary collapse
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(op:, type:, original_error:) ⇒ SerializationError
constructor
A new instance of SerializationError.
Constructor Details
#initialize(op:, type:, original_error:) ⇒ SerializationError
Returns a new instance of SerializationError.
88 89 90 91 92 93 |
# File 'lib/max_bot_api/errors.rb', line 88 def initialize(op:, type:, original_error:) @op = op @type = type @original_error = original_error super("serialization error during #{op} of #{type}: #{original_error}") end |
Instance Attribute Details
#op ⇒ Object (readonly)
Returns the value of attribute op.
83 84 85 |
# File 'lib/max_bot_api/errors.rb', line 83 def op @op end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
83 84 85 |
# File 'lib/max_bot_api/errors.rb', line 83 def original_error @original_error end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
83 84 85 |
# File 'lib/max_bot_api/errors.rb', line 83 def type @type end |