Exception: IBM::Cloud::SDK::VPC::Exceptions::ExceptionWithResponse
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- IBM::Cloud::SDK::VPC::Exceptions::ExceptionWithResponse
- Defined in:
- lib/ibm/cloud/sdk/vpc/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(response, msg) ⇒ ExceptionWithResponse
constructor
A new instance of ExceptionWithResponse.
Constructor Details
#initialize(response, msg) ⇒ ExceptionWithResponse
Returns a new instance of ExceptionWithResponse.
13 14 15 16 |
# File 'lib/ibm/cloud/sdk/vpc/exceptions.rb', line 13 def initialize(response, msg) @response = response super(msg) end |
Instance Attribute Details
#response ⇒ IBM::Cloud::SDK::VPC::Response (readonly)
Returns The response.
18 19 20 |
# File 'lib/ibm/cloud/sdk/vpc/exceptions.rb', line 18 def response @response end |