Capturing an exception thrown in the routes? on_route_exception
28 Oct
2013
28 Oct
'13
8:46 p.m.
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
4393
Age (days ago)
4393
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gabor Szabo