Commit b97a7ea1 by guojuxing

查询为开票单据列表

parent 16b0670e
package com.gic.enterprise.exception;
import com.gic.api.base.commons.ServiceResponse;
/**
* 公共异常
* @ClassName: CommonException

* @Description: 

* @author guojuxing

* @date 2019/8/15 1:56 PM

*/
public class CommonException extends RuntimeException{
private String errorCode;
public CommonException(String errorCode, String message) {
super(message);
this.errorCode = errorCode;
}
public CommonException(ServiceResponse serviceResponse) {
super(serviceResponse.getMessage());
this.errorCode = serviceResponse.getCode();
}
public String getErrorCode() {
return errorCode;
}
}
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