Exception: Tiktalik::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Tiktalik::Error
- Defined in:
- lib/tiktalik/error.rb
Direct Known Subclasses
BadRequest, Conflict, Forbidden, NotAllowed, NotFound, PaymentRequired, ServerError, Unauthorized, UnknownStatus
Defined Under Namespace
Classes: BadRequest, Conflict, Forbidden, NotAllowed, NotFound, PaymentRequired, ServerError, Unauthorized, UnknownStatus
Constant Summary collapse
- STATUSES =
{ 400 => BadRequest, 401 => Unauthorized, 402 => PaymentRequired, 403 => Forbidden, 404 => NotFound, 405 => NotAllowed, 409 => Conflict, 500 => ServerError }
Class Method Summary collapse
Class Method Details
.find_by_status(status) ⇒ Object
51 52 53 |
# File 'lib/tiktalik/error.rb', line 51 def self.find_by_status(status) STATUSES[status.to_i] || UnknownStatus end |