net.somta.core.exception.BizException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of somta-core Show documentation
Show all versions of somta-core Show documentation
Use Somta for rapid development
package net.somta.core.exception;
import net.somta.core.base.IBaseError;
public class BizException extends BaseException {
public BizException(IBaseError baseError, Object... args) {
super(baseError.getErrorCode(), String.format(baseError.getErrorMsg(),args), ExceptionConstants.ERROR_TYPE_BIZ);
}
public BizException(IBaseError baseError,Throwable throwable,Object... args) {
super(baseError.getErrorCode(), String.format(baseError.getErrorMsg(),args), ExceptionConstants.ERROR_TYPE_BIZ,throwable);
}
public BizException(long errorCode,IBaseError baseError,Object... args) {
super(errorCode, String.format(baseError.getErrorMsg(),args), ExceptionConstants.ERROR_TYPE_BIZ);
}
}