Link to home
Start Free TrialLog in
Avatar of PrakashVarma
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?
Avatar of ramumr
ramumr

Exception handling in spring can be done using exception resolver. One good read below
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

ASKER CERTIFIED SOLUTION
Avatar of reijnemans
reijnemans
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial