Exception: MxitApi::Exception

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

Direct Known Subclasses

RequestException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Exception

Returns a new instance of Exception.



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

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end