Exception: LinodeAPI::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- LinodeAPI::HTTPError
- Defined in:
- lib/linodeapi/errors.rb
Overview
A standard HTTP error with an embedded error code
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, msg = 'HTTP Error encountered') ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(code, msg = 'HTTP Error encountered') ⇒ HTTPError
Returns a new instance of HTTPError.
7 8 9 10 |
# File 'lib/linodeapi/errors.rb', line 7 def initialize(code, msg = 'HTTP Error encountered') @code = code super(msg) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/linodeapi/errors.rb', line 5 def code @code end |