class Alfodr::Pipe::Error
- Alfodr::Pipe::Error
- Alfodr::Pipe::Base
- Reference
- Object
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:
alfodr/pipes/error.crInstance Method Summary
-
#call(context : HTTP::Server::Context)
Execution of this handler.
Instance methods inherited from class Alfodr::Pipe::Base
call(context : HTTP::Server::Context)
call
Instance Method Detail
def call(context : HTTP::Server::Context)
#
Description copied from class Alfodr::Pipe::Base
Execution of this handler.