Exception: HttpError::Error
- Inherits:
-
StandardError
- Object
- StandardError
- HttpError::Error
- Defined in:
- lib/http_error/error.rb
Overview
InternalServerError is used by all other errors to inherit from
Direct Known Subclasses
BadRequest, Forbidden, InternalServerError, NotFound, NotImplemented, Teapot, ToManyRequests, Unauthorized
Class Attribute Summary collapse
-
.message ⇒ Object
Returns the value of attribute message.
-
.status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Class Attribute Details
.message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/http_error/error.rb', line 6 def @message end |
.status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/http_error/error.rb', line 5 def status @status end |
Instance Method Details
#error ⇒ Object
13 14 15 |
# File 'lib/http_error/error.rb', line 13 def error || self.class. end |
#status ⇒ Object
9 10 11 |
# File 'lib/http_error/error.rb', line 9 def status self.class.status end |