Exception: SabyVok::HttpError
- Defined in:
- lib/saby_vok/errors.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, body:) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, status:, body:) ⇒ HttpError
Returns a new instance of HttpError.
21 22 23 24 25 |
# File 'lib/saby_vok/errors.rb', line 21 def initialize(, status:, body:) super() @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
19 20 21 |
# File 'lib/saby_vok/errors.rb', line 19 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
19 20 21 |
# File 'lib/saby_vok/errors.rb', line 19 def status @status end |