Exception: Simplesol::Error
- Inherits:
-
Exception
- Object
- Exception
- Simplesol::Error
- Defined in:
- lib/simplesol/errors.rb
Direct Known Subclasses
InvalidApiComponentError, InvalidApiComponentMethodError, InvalidMessageIdError, InvalidRecipientsError, InvalidSignatureError, InvalidUserError, MessageIsEmptyError, NotEnoughMoneyError, SenderIsEmptyError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/simplesol/errors.rb', line 11 def initialize(response) @code = response.error @message = response. end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/simplesol/errors.rb', line 9 def code @code end |