Hi,

is there a way in Dancer2 to provide a generic handler for exceptions
in any route?

I added a

hook on_route_exception => sub {
  my ($context, $error) = @_;
};

but it is unclear to me what can I do there.

I tried to call redirect and forward in that hook
but it disregarded both and I still got the exception in the browser.

regards
    Gabor
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to