重构异常打印的方式

This commit is contained in:
季圣华
2019-09-05 18:20:12 +08:00
parent 59156e5f74
commit 083c870950
26 changed files with 439 additions and 1541 deletions

View File

@@ -1,63 +0,0 @@
package com.jsh.erp.utils;
/**
* @author jishenghua
* @title: 平台异常基类
* @description: 用于包装一些异常信息,打印日志等服务
* @qq 7 5 2 7 1 8 9 2 0
* @since: 2014-02-24
*/
@SuppressWarnings("serial")
public class JshException extends Exception {
public long errorCode = -1;
public String message;
public JshException() {
super();
}
public JshException(String message) {
super(message);
this.message = message;
}
public JshException(String message, Throwable cause) {
super(message, cause);
this.message = message;
}
public JshException(Throwable cause) {
super(cause);
}
public JshException(long errorCode) {
super();
this.errorCode = errorCode;
}
public JshException(String message, long errorCode) {
super(message);
this.errorCode = errorCode;
this.message = message;
}
public JshException(String message, long errorCode, Throwable cause) {
super(message, cause);
this.errorCode = errorCode;
this.message = message;
}
public JshException(long errorCode, Throwable cause) {
super(cause);
this.errorCode = errorCode;
}
public long getErrorCode() {
return errorCode;
}
public String getMessage() {
return message;
}
}