class Srcom::StatusException

Overview

This exception is raised in Api#request and Api#request_single_item when a request fails in general, without returning a special error response.

Direct Known Subclasses

Defined in:

srcr/exceptions.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(response : HTTP::Client::Response) #

[View source]

Instance Method Detail

def message #

[View source]
def response : HTTP::Client::Response #

[View source]
def status_code : Int32 #

The status code of the response that caused this exception, for example 500 or 418.


[View source]
def status_message : String #

The status message of the response that caused this exception, for example "Internal Server Error" or "I'm A Teapot".


[View source]
def to_s(io) #

[View source]