Exception: Upcheck::HTTPError
- Inherits:
-
TransportError
- Object
- StandardError
- Error
- TransportError
- Upcheck::HTTPError
- Defined in:
- lib/upcheck/errors.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil) ⇒ HTTPError
constructor
A new instance of HTTPError.
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(, status: nil) super() @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/upcheck/errors.rb', line 15 def status @status end |