Exception: BlizzardApi::ApiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BlizzardApi::ApiException
- Defined in:
- lib/blizzard_api/exception.rb
Overview
API Exception
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg = '', code = nil) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(msg = '', code = nil) ⇒ ApiException
Returns a new instance of ApiException.
9 10 11 12 |
# File 'lib/blizzard_api/exception.rb', line 9 def initialize(msg = '', code = nil) @code = code super msg end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/blizzard_api/exception.rb', line 7 def code @code end |