class Honeybadger::Handler

Overview

An HTTP Server Handler which intercepts unhandled exceptions and sends them to the Honeybadger exception reporting api.

Included Modules

Defined in:

honeybadger/handler.cr

Constructors

Constructor Detail

def self.new(factory : Honeybadger::HttpPayload.class = Honeybadger::HttpPayload) #

Builds a new handler for inclusion into an HTTP server config. The default reporting payload renders general http context information. Framework or application specific should be provided by subclassing HttpPayload and providing an explicit factory.


[View source]