Exception: PlayNicely::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PlayNicely::Error
- Defined in:
- lib/playnicely.rb
Direct Known Subclasses
BadRequest, ClientError, Forbidden, NotFound, ServerError, Unauthorized
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
Instance Method Summary collapse
-
#initialize(type, error_message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type, error_message = nil) ⇒ Error
Returns a new instance of Error.
20 21 22 23 |
# File 'lib/playnicely.rb', line 20 def initialize(type, =nil) @error_type = type @error_message = end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
19 20 21 |
# File 'lib/playnicely.rb', line 19 def @error_message end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
19 20 21 |
# File 'lib/playnicely.rb', line 19 def error_type @error_type end |