Exception: RBattlenet::Errors::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RBattlenet::Errors::Error
- Defined in:
- lib/rbattlenet/exceptions.rb
Direct Known Subclasses
ConnectionError, FindNotSupported, IndexNotSupported, InvalidFieldsOption, InvalidInput, Unauthorized
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(reason) ⇒ Error
Returns a new instance of Error.
6 7 8 |
# File 'lib/rbattlenet/exceptions.rb', line 6 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/rbattlenet/exceptions.rb', line 4 def reason @reason end |