struct CA::Error

Defined in:

clean-architectures/error.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(body : String | ErrorBody, status_code : HTTP::Status) #

[View source]

Class Method Detail

def self.bad_request(body) #

[View source]
def self.login_timeout(message : String) #

[View source]
def self.server_error(body) #

[View source]
def self.simple_message(message : String) #

[View source]
def self.unauthorized(message : String) #

[View source]

Instance Method Detail

def body : ErrorBody #

[View source]
def body=(body : ErrorBody) #

[View source]
def status_code : HTTP::Status #

[View source]
def status_code=(status_code : HTTP::Status) #

[View source]
def to_json #

[View source]