class

Amazonite::Core::ResponseException

Inherits Exception < Reference < Object

Raised when a client operation gets a non-2xx response - http is the raw HTTP response and code is the service's error type/code, if one was present. Every generated service module defines its own subclasses per exception type declared by that service's API.

Constructors

new(http : HTTP::Client::Response, message : String | Nil = nil, code : String | Nil = nil)
Source

Instance methods

code
Source
http
Source