class Azu::Response::Error

Overview

Enhanced base error class with better context and debugging

Included Modules

Direct Known Subclasses

Defined in:

azu/response.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Azu::Response

render render

Constructor Detail

def self.new(title : String, status : HTTP::Status, errors : Array(String), context : Azu::ErrorContext | Nil = nil) #

[View source]

Class Method Detail

def self.from_exception(ex, status = 500, context : ErrorContext | Nil = nil) #

[View source]

Instance Method Detail

def context : ErrorContext | Nil #

[View source]
def context=(context : ErrorContext | Nil) #

[View source]
def detail : String #

[View source]
def detail=(detail : String) #

[View source]
def error_id : String #

[View source]
def error_id=(error_id : String) #

[View source]
def errors : Array(String) #

[View source]
def errors=(errors : Array(String)) #

[View source]
def fingerprint : String #

[View source]
def fingerprint=(fingerprint : String) #

[View source]
def html(context) #

[View source]
def html #

[View source]
def json #

[View source]
def link #

[View source]
def render(template : String, data) #

[View source]
def render #

[View source]
def source : String #

[View source]
def source=(source : String) #

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

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

[View source]
def status_code #

[View source]
def text #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]
def to_s(context : HTTP::Server::Context) #

[View source]
def xml #

[View source]