Exception: Endo::Error::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- Endo::Error::HttpError
- Defined in:
- lib/endo/error/http_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code, body) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, code, body) ⇒ HttpError
Returns a new instance of HttpError.
6 7 8 9 10 |
# File 'lib/endo/error/http_error.rb', line 6 def initialize(, code, body) super() @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/endo/error/http_error.rb', line 4 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/endo/error/http_error.rb', line 4 def code @code end |