Exception: Corelogic::Error

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

Constant Summary collapse

BadRequest =
Class.new(self)
Unauthorized =
Class.new(self)
Forbidden =
Class.new(self)
NotFound =
Class.new(self)
InternalServerError =
Class.new(self)
TooManyRequests =
Class.new(self)
ERRORS_MAP =
{
  400 => Corelogic::Error::BadRequest,
  401 => Corelogic::Error::Unauthorized,
  403 => Corelogic::Error::Forbidden,
  404 => Corelogic::Error::NotFound,
  429 => Corelogic::Error::TooManyRequests,
  500 => Corelogic::Error::InternalServerError
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/corelogic/error.rb', line 3

def code
  @code
end