package cn.allms.community.infrastructure.exception; /** * @author xieYj * @date 2021/5/11 13:59 */ public class BusinessException extends Exception { /** * 业务异常码 */ private String code; /** * 业务异常参数 */ private Object[] arguments; public BusinessException() { super(); } public BusinessException(Throwable cause) { super(cause); } public BusinessException(String message) { super(message); } public BusinessException(String code, String message) { super(message); this.code = code; } public BusinessException(String message, Object[] arguments) { super(message); this.arguments = arguments; } public BusinessException(String code, String message, Object[] arguments) { super(message); this.code = code; this.arguments = arguments; } public BusinessException(String message, Object[] arguments, Throwable cause) { super(message, cause); this.arguments = arguments; } public BusinessException(String code, String message, Object[] arguments, Throwable cause) { super(message, cause); this.code = code; this.arguments = arguments; } public BusinessException(String message, Throwable cause) { super(message, cause); } public BusinessException(String code, String message, Throwable cause) { super(message, cause); this.code = code; } public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); } public BusinessException(String code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) { super(message, cause, enableSuppression, writableStackTrace); this.code = code; } }