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.
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:
AopConfigException
AopInvocationException
ApplicationContextException
BadSqlGrammarException
BeanCreationException
BeanCreationNotAllowedException
BeanCurrentlyInCreationException
BeanDefinitionParsingException
BeanDefinitionStoreException
BeanDefinitionValidationException
BeanExpressionException
BeanInitializationException
BeanInstantiationException
BeanIsAbstractException
BeanIsNotAFactoryException
BeanNotOfRequiredTypeException
BeansException
BootstrapException
BshScriptUtils.BshExecutionException
CannotAcquireLockException
CannotCreateRecordException
CannotCreateTransactionException
CannotGetCciConnectionException
CannotGetJdbcConnectionException
CannotLoadBeanClassException
CannotSerializeTransactionException
CciOperationNotSupportedException
CleanupFailureDataAccessException
ConcurrencyFailureException
ConversionException
ConversionFailedException
ConversionNotSupportedException
ConverterNotFoundException
DataAccessException
DataAccessResourceFailureException
DataIntegrityViolationException
DataRetrievalFailureException
DataSourceLookupFailureException
DeadlockLoserDataAccessException
DuplicateKeyException
EjbAccessException
EmptyResultDataAccessException
FactoryBeanNotInitializedException
FatalBeanException
HandlerMethodInvocationException
HeuristicCompletionException
HibernateOptimisticLockingFailureException
HttpClientErrorException
HttpMessageConversionException
HttpMessageNotReadableException
HttpMessageNotWritableException
HttpServerErrorException
HttpStatusCodeException
IllegalTransactionStateException
IncorrectResultSetColumnCountException
IncorrectResultSizeDataAccessException
IncorrectUpdateSemanticsDataAccessException
InvalidDataAccessApiUsageException
InvalidDataAccessResourceUsageException
InvalidIsolationLevelException
InvalidMetadataException
InvalidPropertyException
InvalidResultSetAccessException
InvalidResultSetAccessException
InvalidTimeoutException
InvocationFailureException
JaxRpcSoapFaultException
JaxWsSoapFaultException
JdbcUpdateAffectedIncorrectNumberOfRowsException
JdoOptimisticLockingFailureException
JmxException
JndiLookupFailureException
JobMethodInvocationFailedException
JpaOptimisticLockingFailureException
JRubyScriptUtils.JRubyExecutionException
LobRetrievalFailureException
MailAuthenticationException
MailException
MailParseException
MailPreparationException
MailSendException
MaxUploadSizeExceededException
MBeanConnectFailureException
MBeanExportException
MBeanInfoRetrievalException
MBeanServerNotFoundException
MessageConversionException
MetaDataAccessException
MethodInvocationException
MultipartException
NestedTransactionNotSupportedException
NonTransientDataAccessException
NonTransientDataAccessResourceException
NoSuchBeanDefinitionException
NotAnAtAspectException
NoTransactionException
NotReadablePropertyException
NotWritablePropertyException
NullValueInNestedPathException
ObjectOptimisticLockingFailureException
OptimisticLockingFailureException
PermissionDeniedDataAccessException
PessimisticLockingFailureException
PropertyAccessException
RecordTypeNotSupportedException
RecoverableDataAccessException
RemoteAccessException
RemoteConnectFailureException
RemoteInvocationFailureException
RemoteLookupFailureException
RemoteProxyFailureException
ResourceAccessException
RestClientException
SchedulingException
ScriptCompilationException
SerializationFailedException
SoapFaultException
SQLWarningException
SqlXmlFeatureNotImplementedException
TransactionException
TransactionSuspensionNotSupportedException
TransactionSystemException
TransactionTimedOutException
TransactionUsageException
TransientDataAccessException
TransientDataAccessResourceException
TypeMismatchDataAccessException
TypeMismatchException
UnableToRegisterMBeanException
UnableToSendNotificationException
UncategorizedDataAccessException
UncategorizedSQLException
UnexpectedRollbackException
UnsatisfiedDependencyException
XmlBeanDefinitionStoreException
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With