Exception: MercuryParser::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mercury_parser/error.rb

Defined Under Namespace

Classes: BadRequest, ClientError, ConfigurationError, Forbidden, InternalServerError, NotFound, RequestError, UnauthorizedRequest

Constant Summary collapse

ERROR_MAP =
{
  400 => MercuryParser::Error::BadRequest,
  401 => MercuryParser::Error::UnauthorizedRequest,
  403 => MercuryParser::Error::Forbidden,
  404 => MercuryParser::Error::NotFound,
  500 => MercuryParser::Error::InternalServerError
}