Exception: Hyperdrive::Errors::HTTPError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Hyperdrive::Errors::HTTPError
- Defined in:
- lib/hyperdrive/errors/http_error.rb
Direct Known Subclasses
BadRequest, InternalServerError, JSONParseError, MethodNotAllowed, MissingRequiredParam, NoResponse, NotAcceptable, NotFound, NotImplemented, Unauthorized, UnknownError
Instance Attribute Summary collapse
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, http_status_code = 500) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(message, http_status_code = 500) ⇒ HTTPError
Returns a new instance of HTTPError.
7 8 9 10 |
# File 'lib/hyperdrive/errors/http_error.rb', line 7 def initialize(, http_status_code = 500) @message = @http_status_code = http_status_code end |
Instance Attribute Details
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
6 7 8 |
# File 'lib/hyperdrive/errors/http_error.rb', line 6 def http_status_code @http_status_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/hyperdrive/errors/http_error.rb', line 6 def @message end |