@RestControllerAdvice @RestController @ResponseResultStatus public class DataSourceExceptionHandler extends Object implements org.springframework.core.Ordered
| 构造器和说明 |
|---|
DataSourceExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResponseResult<?> |
dataIntegrityViolationException(org.springframework.dao.DataIntegrityViolationException e) |
int |
getOrder() |
ResponseResult<?> |
handleBadSqlGrammarException(org.springframework.jdbc.BadSqlGrammarException e) |
ResponseResult<?> |
handleSqlSyntaxErrorException(SQLSyntaxErrorException e) |
ResponseResult<?> |
handleTenantException(TenantException e) |
ResponseResult<?> |
handleTooManyResultsException(org.apache.ibatis.exceptions.TooManyResultsException e) |
ResponseResult<?> |
myBatisSystemException(org.mybatis.spring.MyBatisSystemException e) |
ResponseResult<?> |
persistenceException(org.apache.ibatis.exceptions.PersistenceException e) |
ResponseResult<?> |
sqlException(SQLException e) |
@ExceptionHandler(value=java.sql.SQLSyntaxErrorException.class) public ResponseResult<?> handleSqlSyntaxErrorException(SQLSyntaxErrorException e)
@ExceptionHandler(value=org.apache.ibatis.exceptions.TooManyResultsException.class) public ResponseResult<?> handleTooManyResultsException(org.apache.ibatis.exceptions.TooManyResultsException e)
@ExceptionHandler(value=org.springframework.jdbc.BadSqlGrammarException.class) public ResponseResult<?> handleBadSqlGrammarException(org.springframework.jdbc.BadSqlGrammarException e)
@ExceptionHandler(value=org.apache.ibatis.exceptions.PersistenceException.class) public ResponseResult<?> persistenceException(org.apache.ibatis.exceptions.PersistenceException e)
@ExceptionHandler(value=org.mybatis.spring.MyBatisSystemException.class) public ResponseResult<?> myBatisSystemException(org.mybatis.spring.MyBatisSystemException e)
@ExceptionHandler(value=java.sql.SQLException.class) public ResponseResult<?> sqlException(SQLException e)
@ExceptionHandler(value=org.springframework.dao.DataIntegrityViolationException.class) public ResponseResult<?> dataIntegrityViolationException(org.springframework.dao.DataIntegrityViolationException e)
@ExceptionHandler(value=com.github.sparkzxl.core.support.TenantException.class) public ResponseResult<?> handleTenantException(TenantException e)
public int getOrder()
getOrder 在接口中 org.springframework.core.OrderedCopyright © 2021. All rights reserved.