Exception: IBM::Cloud::SDKHTTP::Exceptions::ExceptionWithResponse
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- IBM::Cloud::SDKHTTP::Exceptions::ExceptionWithResponse
- Defined in:
- lib/ibm/cloud/sdk_http/exceptions.rb
Overview
An exception for http with a response attribute.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ IBM::Cloud::SDK::VPC::Response
readonly
The response.
Instance Method Summary collapse
-
#initialize(msg, response) ⇒ ExceptionWithResponse
constructor
A new instance of ExceptionWithResponse.
Constructor Details
#initialize(msg, response) ⇒ ExceptionWithResponse
12 13 14 15 |
# File 'lib/ibm/cloud/sdk_http/exceptions.rb', line 12 def initialize(msg, response) @response = response super(msg) end |
Instance Attribute Details
#response ⇒ IBM::Cloud::SDK::VPC::Response (readonly)
17 18 19 |
# File 'lib/ibm/cloud/sdk_http/exceptions.rb', line 17 def response @response end |