[dancer-users] How to handle exceptions gracefully in Dancer2?

John J. McDermott, CPLP jjm at jkintl.com
Sun Jul 27 20:29:48 BST 2014

Thanks for the fast reply. I wanted to avoid a lot of testing if it
didn't. Can I generally use Dancer modules in Dancer2?

On 7/27/2014 1:17 PM, fabioniguel3 at gmail.com wrote:
> Hi John, this doesn't work?
> http://search.cpan.org/~yanick/Dancer-1.3124/lib/Dancer/Exception.pm
> <http://search.cpan.org/%7Eyanick/Dancer-1.3124/lib/Dancer/Exception.pm>
> On Sun, Jul 27, 2014 at 8:06 PM, John J. McDermott, CPLP
> <jjm at jkintl.com <mailto:jjm at jkintl.com>> wrote:
>     All,
>     I am new to Dancer/Dancer2 and to the list. I have an application that
>     makes some db calls and some rest calls to another site, and of course
>     those can fail. I'd like to handle those gracefully. Can I use
>     Dancer::Exception in Dancer2? Should I just croak? Or is there
>     something
>     else. I could not find a Dancer2::Exception.
>     Thanks,
>     --john
>     --
>     John J. McDermott, CPLP
>     _______________________________________________
>     dancer-users mailing list
>     dancer-users at dancer.pm <mailto:dancer-users at dancer.pm>
>     http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

John J. McDermott, CPLP
Learning and Performance Consultant
jjm at jkintl.com 575/737-8556
Check out my security blog posts <http://cybersecurity.learningtree.com>
Add an A for the Arts To STEM and get STEAM and a strong engine to move
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20140727/9f0be73d/attachment-0001.html>

More information about the dancer-users mailing list