Exception: Malartu::Error::MalartuError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/malartu/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = message
  @parameters = parameters
  @json_body = json_body
end

Instance Attribute Details

#json_reponseObject (readonly)

Returns the value of attribute json_reponse.



4
5
6
# File 'lib/malartu/error.rb', line 4

def json_reponse
  @json_reponse
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/malartu/error.rb', line 4

def message
  @message
end

#parametersObject (readonly)

Returns the value of attribute parameters.



4
5
6
# File 'lib/malartu/error.rb', line 4

def parameters
  @parameters
end