Exception: Malartu::Error::MalartuError
- Inherits:
-
StandardError
- Object
- StandardError
- Malartu::Error::MalartuError
- Defined in:
- lib/malartu/error.rb
Direct Known Subclasses
AuthorizationError, RateLimitError, RecordNotFoundError, ServerError
Instance Attribute Summary collapse
-
#json_reponse ⇒ Object
readonly
Returns the value of attribute json_reponse.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#initialize(message: nil, parameters: nil, json_body: nil) ⇒ MalartuError
constructor
A new instance of MalartuError.
Constructor Details
#initialize(message: nil, parameters: nil, json_body: nil) ⇒ MalartuError
Returns a new instance of MalartuError.
6 7 8 9 10 |
# File 'lib/malartu/error.rb', line 6 def initialize(message: nil, parameters: nil, json_body: nil) @message = @parameters = parameters @json_body = json_body end |
Instance Attribute Details
#json_reponse ⇒ Object (readonly)
Returns the value of attribute json_reponse.
4 5 6 |
# File 'lib/malartu/error.rb', line 4 def json_reponse @json_reponse end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/malartu/error.rb', line 4 def @message end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
4 5 6 |
# File 'lib/malartu/error.rb', line 4 def parameters @parameters end |