Exception: HasOffersV3::InternalError
- Inherits:
-
APIError
- Object
- StandardError
- Error
- ResponseError
- APIError
- HasOffersV3::InternalError
- Defined in:
- lib/hasoffersv3/api_error.rb
Instance Attribute Summary
Attributes inherited from ResponseError
Class Method Summary collapse
Methods inherited from APIError
Methods inherited from ResponseError
Constructor Details
This class inherits a constructor from HasOffersV3::ResponseError
Class Method Details
.detect(response) ⇒ Object
43 44 45 46 |
# File 'lib/hasoffersv3/api_error.rb', line 43 def self.detect(response) # E.g. "There was a database error with the trackable id [SE-5888e90b944af]. Contact support for more assistance." response..grep(/error with the trackable id/).first end |