Exception: WhiplashApiError
- Inherits:
-
StandardError
- Object
- StandardError
- WhiplashApiError
- Defined in:
- lib/errors/whiplash_api_error.rb
Direct Known Subclasses
BadRequest, Configuration, Conflict, Deadlock, Forbidden, Ignore, InternalServerError, Inventory, MethodNotAllowed, NotAcceptable, OverRateLimit, RecordNotFound, SSLError, ServiceUnavailable, Timeout, Unauthorized, UnknownError, UnprocessableEntity, UnsupportedMediaType
Defined Under Namespace
Classes: BadRequest, Configuration, Conflict, Deadlock, Forbidden, Ignore, InternalServerError, Inventory, MethodNotAllowed, NotAcceptable, OverRateLimit, RecordNotFound, SSLError, ServiceUnavailable, Timeout, Unauthorized, UnknownError, UnprocessableEntity, UnsupportedMediaType
Class Method Summary collapse
Class Method Details
.codes ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/errors/whiplash_api_error.rb', line 80 def self.codes { 400 => WhiplashApiError::BadRequest, 401 => WhiplashApiError::Unauthorized, 403 => WhiplashApiError::Forbidden, 404 => WhiplashApiError::RecordNotFound, 405 => WhiplashApiError::MethodNotAllowed, 406 => WhiplashApiError::NotAcceptable, 408 => WhiplashApiError::Timeout, 409 => WhiplashApiError::Conflict, 415 => WhiplashApiError::UnsupportedMediaType, 422 => WhiplashApiError::UnprocessableEntity, 429 => WhiplashApiError::OverRateLimit, 495 => WhiplashApiError::SSLError, 500 => WhiplashApiError::InternalServerError, 502 => WhiplashApiError::Timeout, 503 => WhiplashApiError::ServiceUnavailable } end |