Exception: Pliny::Errors::HTTPStatusError
- Defined in:
- lib/pliny/errors.rb
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, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType, UseProxy
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, id = nil, status = nil) ⇒ HTTPStatusError
constructor
A new instance of HTTPStatusError.
Methods inherited from Error
Constructor Details
#initialize(message = nil, id = nil, status = nil) ⇒ HTTPStatusError
Returns a new instance of HTTPStatusError.
21 22 23 24 25 26 27 |
# File 'lib/pliny/errors.rb', line 21 def initialize( = nil, id = nil, status = nil) = Pliny::Errors::META[self.class] = || [1] + "." id = id || [1].downcase.tr(' ', '_').to_sym @status = status || [0] super(, id) end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
19 20 21 |
# File 'lib/pliny/errors.rb', line 19 def status @status end |