Spring MVC Best Practice Handling Unrecoverable Exceptions In Controller

Posted by jboyd on Stack Overflow See other posts from Stack Overflow or by jboyd
Published on 2010-03-29T13:04:59Z Indexed on 2010/03/29 13:13 UTC
Read the original article Hit count: 409

When you have a controller that does logic with services and DAO's that may throw an unrecoverable exception, what is the best practice in dealing with those method calls?

Currently an app I'm working on has very lengthy try catch methods that simply err.out exception messages, this doesn't seem very robust and I think that this code smells, is there any cookie cutter best practice for handling this in spring-mvc?

© Stack Overflow or respective owner

Related posts about spring-mvc

Related posts about exception-handling