Exception: Factorix::HTTPClientError
- Inherits:
-
HTTPError
- Object
- StandardError
- Error
- InfrastructureError
- HTTPError
- Factorix::HTTPClientError
- Defined in:
- lib/factorix/errors.rb
Overview
HTTP client error (4xx) with optional API error details
Direct Known Subclasses
Instance Attribute Summary collapse
-
#api_error ⇒ Object
readonly
Returns the value of attribute api_error.
-
#api_message ⇒ Object
readonly
Returns the value of attribute api_message.
Instance Method Summary collapse
-
#initialize(message = nil, api_error: nil, api_message: nil) ⇒ HTTPClientError
constructor
A new instance of HTTPClientError.
Constructor Details
#initialize(message = nil, api_error: nil, api_message: nil) ⇒ HTTPClientError
Returns a new instance of HTTPClientError.
41 42 43 44 45 |
# File 'lib/factorix/errors.rb', line 41 def initialize(=nil, api_error: nil, api_message: nil) @api_error = api_error @api_message = super() end |
Instance Attribute Details
#api_error ⇒ Object (readonly)
Returns the value of attribute api_error.
38 39 40 |
# File 'lib/factorix/errors.rb', line 38 def api_error @api_error end |
#api_message ⇒ Object (readonly)
Returns the value of attribute api_message.
39 40 41 |
# File 'lib/factorix/errors.rb', line 39 def @api_message end |