Exception: IBM::Cloud::SDK::VPC::Exceptions::ExceptionWithResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ibm/cloud/sdk/vpc/exceptions.rb

Overview

An exception for http with a response attribute.

Direct Known Subclasses

HttpStatusError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseIBM::Cloud::SDK::VPC::Response (readonly)

Returns The response.

Returns:



18
19
20
# File 'lib/ibm/cloud/sdk/vpc/exceptions.rb', line 18

def response
  @response
end