Exception: CheckHim::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CheckHim::Error
- Defined in:
- lib/checkhim/errors.rb
Overview
Base error for all CheckHim related failures.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(message = nil, code: nil, http_status: nil, details: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, code: nil, http_status: nil, details: nil) ⇒ Error
8 9 10 11 12 13 |
# File 'lib/checkhim/errors.rb', line 8 def initialize( = nil, code: nil, http_status: nil, details: nil) super() @code = code @http_status = http_status @details = details end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/checkhim/errors.rb', line 6 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
6 7 8 |
# File 'lib/checkhim/errors.rb', line 6 def details @details end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
6 7 8 |
# File 'lib/checkhim/errors.rb', line 6 def http_status @http_status end |