Commit 15363378 by caojingji

修改异常信息类,添加e变量

parent 4fe9bb7e
...@@ -12,6 +12,7 @@ import com.founder.interservice.enums.ResultEnum; ...@@ -12,6 +12,7 @@ import com.founder.interservice.enums.ResultEnum;
public class InterServiceException extends RuntimeException { public class InterServiceException extends RuntimeException {
private Integer code; private Integer code;
private Exception e;
public InterServiceException(ResultEnum resultEnum){ public InterServiceException(ResultEnum resultEnum){
super(resultEnum.getMessage()); super(resultEnum.getMessage());
...@@ -21,8 +22,16 @@ public class InterServiceException extends RuntimeException { ...@@ -21,8 +22,16 @@ public class InterServiceException extends RuntimeException {
super(message); super(message);
this.code = code; this.code = code;
} }
public InterServiceException(Integer code,String message,Exception e){
super(message);
this.code = code;
this.e = e;
}
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public Exception getException() {
return e;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment