class

Azu::Response::Error

Inherits Azu::Response < Exception < Reference < Object

Enhanced base error class with better context and debugging

Constructors

new(title : String, status : HTTP::Status, errors : Array(String), context : Azu::ErrorContext | Nil = nil)
Source

Class methods

from_exception(ex, status = 500, context : ErrorContext | Nil = nil)
Source

Instance methods

context
Source
context=(context : ErrorContext | Nil)
Source
detail
Source
detail=(detail : String)
Source
error_id
Source
error_id=(error_id : String)
Source
errors
Source
errors=(errors : Array(String))
Source
fingerprint
Source
fingerprint=(fingerprint : String)
Source
html(context)
Source
html
Source
json
Source
render(template : String, data)
Source
render
Source
source
Source
source=(source : String)
Source
status
Source
status=(status : HTTP::Status)
Source
status_code
Source
text
Source
title
Source
title=(title : String)
Source