PrakashVarma
asked on
Handling exceptions in spring framework
Hi Friends,
Recently i went interview for xxx company,they are asked one question on spring i.e
how to handle exceptions in spring framework?and why exception classes in spring are extends RuntimeException class?
Recently i went interview for xxx company,they are asked one question on spring i.e
how to handle exceptions in spring framework?and why exception classes in spring are extends RuntimeException class?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://static.springsource.org/spring/docs/2.0.x/reference/mvc.html
Spring throws runtime exceptions, so that if you do not handle an exception in your code, your application will break and the user gets the application exception and you will be more careful for that not to happen. One good read on that below
http://springtips.blogspot.com/2007/11/runtime-exception-in-spring.html