class Launch::Pipe::Error

Overview

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.

Defined in:

launch/pipes/error.cr

Constant Summary

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

Instance Method Summary

Instance methods inherited from class Launch::Pipe::Base

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

Instance methods inherited from class Object

blank? blank?, present? present?

Instance Method Detail

def call(context : HTTP::Server::Context) #
Description copied from class Launch::Pipe::Base

Execution of this handler.


[View source]