class

Amber::Pipe::Error

Inherits Amber::Pipe::Base < HTTP::Handler < Reference < Object

The Error pipe catches RouteNotFound and returns a 404. It responds based on the Accepts header as JSON or HTML. It also catches any runtime Exceptions and returns a backtrace in text/html format.

Constants

Log = ::Log.for("error")

Instance methods

call(context : HTTP::Server::Context)

Execution of this handler.

Source