Exception: Twoffein::Server::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Twoffein::Server::Error
- Defined in:
- lib/twoffein-client/exceptions.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, message) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(type, message) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/twoffein-client/exceptions.rb', line 5 def initialize(type, ) @type = type = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/twoffein-client/exceptions.rb', line 4 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
4 5 6 |
# File 'lib/twoffein-client/exceptions.rb', line 4 def type @type end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/twoffein-client/exceptions.rb', line 10 def to_s @type.to_s end |