com.circustar.mybatis_accessor.common.MybatisAccessorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-accessor Show documentation
Show all versions of mybatis-accessor Show documentation
enhancement based on mybatis plus
The newest version!
package com.circustar.mybatis_accessor.common;
public class MybatisAccessorException extends Exception {
public enum ExceptionType {
TARGET_NOT_FOUND,
NOT_SUPPORT_TYPE,
SQL_ERROR,
METHOD_INVOKE_EXCEPTION;
}
private ExceptionType exceptionType;
public MybatisAccessorException(ExceptionType type, Exception ex) {
super(ex);
this.exceptionType = type;
}
public MybatisAccessorException(ExceptionType type, String message) {
super(message);
this.exceptionType = type;
}
public ExceptionType getExceptionType() {
return exceptionType;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy