Exception: ACTV::Error::ClientError
- Inherits:
-
ACTV::Error
- Object
- StandardError
- ACTV::Error
- ACTV::Error::ClientError
- Defined in:
- lib/actv/error/client_error.rb
Overview
Raised when Active returns a 4xx HTTP status code or there’s an error in Faraday
Direct Known Subclasses
BadRequest, EnhanceYourCalm, Forbidden, NotAcceptable, NotFound, Unauthorized
Instance Attribute Summary
Attributes inherited from ACTV::Error
Class Method Summary collapse
-
.from_response_body(body) ⇒ ACTV::Error
Create a new error from an HTTP environment.
Methods inherited from ACTV::Error
#backtrace, descendants, errors, #initialize
Constructor Details
This class inherits a constructor from ACTV::Error
Class Method Details
.from_response_body(body) ⇒ ACTV::Error
Create a new error from an HTTP environment
12 13 14 |
# File 'lib/actv/error/client_error.rb', line 12 def self.from_response_body(body) new(parse_error(body)) end |