I am working with a rather larger Cro application with dozens of routes, models and other logic. At the moment in each route block is a CATCH to handle exception. That is not much maintenance friendly, not to speak of the work to add them.
So, I was wondering if its a better way to do that. One CATCH handler in the main route block does not work. The exceptions are only caught in the route block where they are thrown. Threading issue probably.
Is there one place where I can implement an exception handler which gets all exceptions and can handle them without causing the application to die?