Exception: Tilia::Http::HttpException
- Inherits:
-
Exception
- Object
- Exception
- Tilia::Http::HttpException
- Defined in:
- lib/tilia/http/http_exception.rb
Overview
An exception representing a HTTP error.
This can be used as a generic exception in your application, if you’d like to map HTTP errors to exceptions.
If you’d like to use this, create a new exception class, extending Exception and implementing this interface.
Direct Known Subclasses
Instance Method Summary collapse
-
#http_status ⇒ String?
The http status code for the error.
Instance Method Details
#http_status ⇒ String?
The http status code for the error.
This may either be just the number, or a number and a human-readable message, separated by a space.
17 18 |
# File 'lib/tilia/http/http_exception.rb', line 17 def http_status end |