Exception: MxitRails::Exception

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code) ⇒ Exception

Returns a new instance of Exception.



5
6
7
8
# File 'lib/mxit_rails/exception.rb', line 5

def initialize message, code
  @message = message
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end