[dancer-users] exceptional dancing

WK wanradt at gmail.com
Thu Nov 20 11:29:06 GMT 2014


I have no real experience using exceptions in my code. Neither I have not
seen good guide how to use exceptions in software developent. I have lot of
small pieces about it, but no big picture. So I have simple question: how
and where to catch errors in Dancer app?

I looked to Dancer::Error and it seems good, but still I don't get, where
is the best place to catch and handle errors? Is it good idea to have one
simple dispatcher (like in bin/app.pl), so every exception is falling to
the base script and handled there? Or is better to catch them in place all
over the code? Or? Is there some "best practice"?

Kõike hääd,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20141120/e134e042/attachment.html>

More information about the dancer-users mailing list