Handling exceptions in spring framework

Posted on 2011-09-12
Last Modified: 2013-11-11
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?
Question by:PrakashVarma

Expert Comment

ID: 36521782
Exception handling in spring can be done using exception resolver. One good read below

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


Accepted Solution

reijnemans earned 500 total points
ID: 36535904

Here is also an article which describes why to use checked and why to use unchecked exceptions:


LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 36572675

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
What is the compatible hibernate version for spring 4.3.1 10 76
array6 challenfge 6 81
allStar challenge 1 52
Modeling a class in java 5 47
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now