Exception: Chain::UnauthorizedError
- Defined in:
- lib/chain/errors.rb
Overview
UnauthorizedError is a special case of APIError, and is raised when the response status code is 401. This is a common error case, so a discrete exception type is provided for convenience.
Constant Summary
Constants inherited from APIError
APIError::RETRIABLE_STATUS_CODES
Instance Attribute Summary
Attributes inherited from APIError
#chain_message, #code, #data, #detail, #request_id, #response, #temporary
Method Summary
Methods inherited from APIError
format_error_message, #initialize, #retriable?
Constructor Details
This class inherits a constructor from Chain::APIError