有谁知道我在哪里可以找到 Spring (3.0.x) 运行时异常的列表?我说的是例外,例如DataRetrievalFailureException
;您可以抛出一整套这些运行时异常。
问问题
17561 次
1 回答
37
好吧,我可以通过在我的 IDE 中加载 Spring 的源代码并查看所有扩展NestedRuntimeException
抽象类的类来找到它们。请记住,其中一些本身就是抽象类,因此您必须使用适当的具体实现:
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
于 2011-09-26T21:35:45.863 回答