Exception: Gull::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- Gull::HttpError
- Defined in:
- lib/gull/error.rb
Overview
Raised when the NWS API returns a non-success response or the connection fails. Wraps the original exception, if any.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(message, original = $ERROR_INFO) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, original = $ERROR_INFO) ⇒ HttpError
Returns a new instance of HttpError.
11 12 13 14 |
# File 'lib/gull/error.rb', line 11 def initialize(, original = $ERROR_INFO) super() @original = original end |
Instance Attribute Details
#original ⇒ Object (readonly)
Returns the value of attribute original.
9 10 11 |
# File 'lib/gull/error.rb', line 9 def original @original end |