Exception: IBM::Cloud::SDKHTTP::Exceptions::ExceptionWithResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ibm/cloud/sdk_http/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(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

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



17
18
19
# File 'lib/ibm/cloud/sdk_http/exceptions.rb', line 17

def response
  @response
end