Skip to content

Error

class Azu::Response::Error
inherits Exception

Included modules

Azu::Response

Direct known subclasses

Azu::Response::BadRequest Azu::Response::Forbidden Azu::Response::NotFound

Class methods

.from_exception(ex, status = 500)

View source

.new(title, status, errors)

View source

Methods

#detail : String

View source

#detail=(detail : String)

View source

#errors : Array(String)

View source

#errors=(errors : Array(String))

View source

#html(context)

View source

#html

View source

#json

View source

#link

View source

#render(template : String, data)

View source

#render

View source

#source : String

View source

#source=(source : String)

View source

#status : HTTP::Status

View source

#status=(status : HTTP::Status)

View source

#status_code

View source

#text

View source

#title : String

View source

#title=(title : String)

View source

#to_s(context : HTTP::Server::Context)

View source