Exception: MxitApi::RequestException

Inherits:
Exception
  • Object
show all
Defined in:
lib/mxit_api/request_exception.rb

Instance Attribute Summary collapse

Attributes inherited from Exception

#message

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ RequestException

Returns a new instance of RequestException.



4
5
6
7
# File 'lib/mxit_api/request_exception.rb', line 4

def initialize(message, code)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/mxit_api/request_exception.rb', line 3

def code
  @code
end