Exception: IBM::Cloud::SDK::VPC::Exceptions::HttpStatusError
- Inherits:
-
ExceptionWithResponse
- Object
- RuntimeError
- ExceptionWithResponse
- IBM::Cloud::SDK::VPC::Exceptions::HttpStatusError
- 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
Instance Method Summary collapse
-
#initialize(response) ⇒ HttpStatusError
constructor
A new instance of HttpStatusError.
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 |