[dancer-users] http_throw and Dancer2

Andrew Beverley andy at andybev.com
Fri Feb 5 14:09:02 EST 2021


On Fri, 5 Feb 2021 08:23:21 -0500 Paul Clements wrote:
> error and fatal_handler seem to work much better than the http_throw
> approach I had been using...

Great, pleased to hear.

> Yes, the ability to overload the error object allows me to pass enough
> information to get the error responses I need.

Good point, I was forgetting that too. You can extend the default
message class:

  use Dancer2::Plugin::LogReport 'myapp', message_class => 'MyApp::Message';

> Thanks for your help,

You're welcome.

Andy


More information about the dancer-users mailing list