List of Spring Runtime Exceptions

Vivin Paliath picture Vivin Paliath · Sep 26, 2011 · Viewed 16.4k times · Source

Does anyone know where I can find a list of Spring's (3.0.x) runtime exceptions? I'm talking about exceptions like DataRetrievalFailureException; there's a whole set of these runtime exceptions that you can throw.

Answer

Vivin Paliath picture Vivin Paliath · Sep 26, 2011

Alright, I was able to find them by loading up the source for Spring in my IDE, and seeing all the classes that extend the NestedRuntimeException abstract class. Keep in mind that some of these are abstract classes themselves, and so you will have to use the appropriate concrete implementation: