Exception: Corelogic::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Corelogic::Error
- Defined in:
- lib/corelogic/error.rb
Constant Summary collapse
- BadRequest =
Class.new(self)
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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/corelogic/error.rb', line 3 def code @code end |