Exception: RestConnection::Errors::HTTPStatusError
- Inherits:
-
StandardError
- Object
- StandardError
- RestConnection::Errors::HTTPStatusError
- Defined in:
- lib/rest_connection.rb
Overview
HTTPStatusErrors, borrowed lovingly from the excon gem <3
Direct Known Subclasses
Accepted, BadGateway, BadRequest, Conflict, Continue, Created, ExpectationFailed, Forbidden, Found, GatewayTimeout, Gone, InternalServerError, LengthRequired, MethodNotAllowed, MovedPermanently, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, RequestedRangeNotSatisfiable, ResetContent, SeeOther, ServiceUnavailable, SwitchingProtocols, TemporaryRedirect, Unauthorized, UnprocessableEntity, UnsupportedMediaType, UseProxy
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg, response = nil, request = nil) ⇒ HTTPStatusError
constructor
A new instance of HTTPStatusError.
Constructor Details
#initialize(msg, response = nil, request = nil) ⇒ HTTPStatusError
Returns a new instance of HTTPStatusError.
305 306 307 308 309 |
# File 'lib/rest_connection.rb', line 305 def initialize(msg, response = nil, request = nil) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
303 304 305 |
# File 'lib/rest_connection.rb', line 303 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
303 304 305 |
# File 'lib/rest_connection.rb', line 303 def response @response end |