From mikko.koivunalho at iki.fi Sun Jan 2 21:06:06 2022 From: mikko.koivunalho at iki.fi (Mikko Johannes Koivunalho) Date: Sun, 2 Jan 2022 22:06:06 +0100 Subject: [dancer-users] Dancer2 Error Hooks Message-ID: <2579fdca-6158-ea00-d8ca-8e0ad56de52b@iki.fi> Dear Dancer users, I am using my own hierarchy of errors in files and libraries which are used in my Dancer2 app. These errors are based on class Throwable::Error. 1) Can I catch these errors in Dancer2 error hooks, e.g. in /on_route_exception/ and 2) maybe transform them into Dancer2::Core::Error objects 3) which I can then handle in views/400.tt template, or even change the page template? -- Mikko Koivunalho -------------- next part -------------- An HTML attachment was scrubbed... URL: