Exception: Upcheck::HTTPError

Inherits:
TransportError show all
Defined in:
lib/upcheck/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status: nil) ⇒ HTTPError

Returns a new instance of HTTPError.



17
18
19
20
# File 'lib/upcheck/errors.rb', line 17

def initialize(message, status: nil)
  super(message)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



15
16
17
# File 'lib/upcheck/errors.rb', line 15

def status
  @status
end