Exception: MxitRails::Exception
- Inherits:
-
Exception
- Object
- Exception
- MxitRails::Exception
- Defined in:
- lib/mxit_rails/exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Exception
constructor
A new instance of Exception.
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 , code @message = @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/mxit_rails/exception.rb', line 4 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/mxit_rails/exception.rb', line 3 def @message end |