Exception: MercuryWebParser::Error

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

Defined Under Namespace

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

Constant Summary collapse

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