Exception: PCPServerSDK::Errors::ApiErrorResponseException
- Inherits:
-
ApiException
- Object
- StandardError
- ApiException
- PCPServerSDK::Errors::ApiErrorResponseException
- Defined in:
- lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb
Instance Attribute Summary collapse
-
#errors ⇒ Array<PCPServerSDK::Models::APIError>
readonly
The errors.
Attributes inherited from ApiException
Instance Method Summary collapse
- #get_errors ⇒ Object
-
#initialize(status_code, response_body, errors = []) ⇒ ApiErrorResponseException
constructor
The constructor.
Methods inherited from ApiException
Constructor Details
#initialize(status_code, response_body, errors = []) ⇒ ApiErrorResponseException
The constructor
16 17 18 19 |
# File 'lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb', line 16 def initialize(status_code, response_body, errors = []) super(status_code, response_body) @errors = errors.any? ? errors : [] end |
Instance Attribute Details
#errors ⇒ Array<PCPServerSDK::Models::APIError> (readonly)
The errors
10 11 12 |
# File 'lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb', line 10 def errors @errors end |
Instance Method Details
#get_errors ⇒ Object
21 22 23 |
# File 'lib/PCP-server-Ruby-SDK/errors/api_error_response_exception.rb', line 21 def get_errors @errors end |