Exception: Sinja::HttpError
- Inherits:
-
SinjaError
- Object
- StandardError
- SinjaError
- Sinja::HttpError
- Defined in:
- lib/sinja/errors.rb
Direct Known Subclasses
BadRequestError, ConflictError, ForbiddenError, MethodNotAllowedError, NotAcceptableError, NotFoundError, SideloadError, UnprocessibleEntityError, UnsupportedTypeError
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
Instance Method Summary collapse
-
#initialize(http_status, message = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(http_status, message = nil) ⇒ HttpError
Returns a new instance of HttpError.
14 15 16 17 |
# File 'lib/sinja/errors.rb', line 14 def initialize(http_status, =nil) @http_status = http_status super() end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
12 13 14 |
# File 'lib/sinja/errors.rb', line 12 def http_status @http_status end |