class Discord::StatusException

Overview

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

Direct Known Subclasses

Defined in:

discordcr/errors.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]