Exception: Kie::ApiError
Overview
Base class for API-related errors with HTTP status and response details
Direct Known Subclasses
AuthenticationError, InsufficientCreditsError, InvalidParametersError, NotFoundError, RateLimitError, ServerError, ServiceUnavailableError, TaskCreationError, TaskFailedError
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = nil, status_code: nil, response_body: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message = nil, status_code: nil, response_body: nil) ⇒ ApiError
Returns a new instance of ApiError.
12 13 14 15 16 |
# File 'lib/kie/errors.rb', line 12 def initialize( = nil, status_code: nil, response_body: nil) super() @status_code = status_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
10 11 12 |
# File 'lib/kie/errors.rb', line 10 def response_body @response_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
10 11 12 |
# File 'lib/kie/errors.rb', line 10 def status_code @status_code end |