class Startback::Web::CatchAll
This Rack middleware catches all exceptions that are raised by sublayers in the Rack chain. It converts them to correct 500 Errors
, with a generic exception message encoded in json.
This class aims at being used as top level of a Rack chain. It is not aimed at being subclassed.
Fatal error cached are also sent as a `fatal` messange, on the error handler provided on Context#error_handler
.fatal, if any.
Examples:
Rack::Builder.new do use Startback::Web::CatchAll end
Constants
- FATAL_ERROR