Exception: Gull::HttpError

Inherits:
StandardError
  • Object
show all
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

TimeoutError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, original = $ERROR_INFO)
  super(message)
  @original = original
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



9
10
11
# File 'lib/gull/error.rb', line 9

def original
  @original
end