Exception: MmJsonClient::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- MmJsonClient::ServerError
- Defined in:
- lib/mm_json_client/exceptions.rb
Overview
The server responded with an error.
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(code, message) ⇒ ServerError
constructor
A new instance of ServerError.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message) ⇒ ServerError
Returns a new instance of ServerError.
7 8 9 10 |
# File 'lib/mm_json_client/exceptions.rb', line 7 def initialize(code, ) @code = code.to_i @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/mm_json_client/exceptions.rb', line 4 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/mm_json_client/exceptions.rb', line 5 def @message end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/mm_json_client/exceptions.rb', line 16 def to_s end |