class Awscr::S3::Exception

Overview

Exception raised when S3 gives us a non 200 http status code. The error will have a specific message from S3.

Defined in:

awscr-s3/exceptions.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(message : String | Nil = nil, status : HTTP::Status | Nil = nil) #

[View source]

Class Method Detail

def self.from_response(response) #

Creates a S3::Exception from an HTTP::Client::Response


[View source]

Instance Method Detail

def status : HTTP::Status | Nil #

The HTTP status of the response that raised this, or nil when it didn't come from a response (e.g. an unknown signer version).


[View source]