Class MyBatisSystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.UncategorizedDataAccessException
org.mybatis.spring.MyBatisSystemException
- All Implemented Interfaces:
Serializable
public class MyBatisSystemException
extends org.springframework.dao.UncategorizedDataAccessException
MyBatis specific subclass of
UncategorizedDataAccessException, for MyBatis system errors that do not match
any concrete org.springframework.dao exceptions.
In MyBatis 3 org.apache.ibatis.exceptions.PersistenceException is a RuntimeException, but using this
wrapper class to bring everything under a single hierarchy will be easier for client code to handle.
- Author:
- Hunter Presnall
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMyBatisSystemException(String msg, Throwable cause) Instantiates a new my batis system exception.MyBatisSystemException(Throwable cause) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MyBatisSystemException
Deprecated, for removal: This API element is subject to removal in a future version.as of 3.0.4, useMyBatisSystemException(String, Throwable)insteadInstantiates a new my batis system exception.- Parameters:
cause- the cause
-
MyBatisSystemException
-
MyBatisSystemException(String, Throwable)instead