stevan/plack-app-path-router — pull request #2 by genehack (2014-09-03 04:52:50+00:00)
Title: Add 'handle_exception' coderef attr

The idea here is to provide more granular control over how thrown
exceptions (e.g., from HTTP::Throwable) are handled.

One specific example: a user could provide a custom handle_exception
hook that lets the thrown exception through in a development
environment, while intercepting it and returning a more innocuous
error (sans stack trace, etc.) in a production environment.