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