|
|
@@ -21,6 +21,12 @@ public class BusinessException extends RuntimeException implements Serializable
|
|
|
this.msg = baseCode.getMsg();
|
|
|
}
|
|
|
|
|
|
+ public BusinessException(int code,String msg) {
|
|
|
+ super(msg);
|
|
|
+ this.code = code;
|
|
|
+ this.msg = msg;
|
|
|
+ }
|
|
|
+
|
|
|
public BusinessException(BaseCode baseCode, Exception e) {
|
|
|
super(baseCode.getMsg(), e);
|
|
|
this.code = baseCode.getCode();
|