Exception: IBM::Cloud::SDK::VPC::Exceptions::HttpStatusError

Inherits:
ExceptionWithResponse show all
Defined in:
lib/ibm/cloud/sdk/vpc/exceptions.rb

Overview

An exception for http status errors with a response attribute.

Instance Attribute Summary

Attributes inherited from ExceptionWithResponse

#response

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HttpStatusError

Returns a new instance of HttpStatusError.



24
25
26
27
# File 'lib/ibm/cloud/sdk/vpc/exceptions.rb', line 24

def initialize(response)
  msg = "Invalid status #{response.code} for url \"#{response.url}\", #{response.reason}. #{response.body}"
  super(response, msg)
end