Exception: Hugs::Errors::HTTPStatusError
- Defined in:
- lib/hugs/errors.rb
Direct Known Subclasses
BadGateway, BadRequest, Conflict, ExpectationFailed, Forbidden, GatewayTimeout, Gone, InternalServerError, LengthRequired, MethodNotAllowed, NotAcceptable, NotFound, NotImplemented, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, RequestedRangeNotSatisfiable, ServiceUnavailable, Unauthorized, UnprocessableEntity, UnsupportedMediaType
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, response) ⇒ HTTPStatusError
constructor
A new instance of HTTPStatusError.
Constructor Details
#initialize(msg, response) ⇒ HTTPStatusError
8 9 10 11 |
# File 'lib/hugs/errors.rb', line 8 def initialize msg, response @response = response super msg end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/hugs/errors.rb', line 6 def response @response end |