com.dahuatech.icc.oauth.exception.BaseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-oauth Show documentation
Show all versions of java-sdk-oauth Show documentation
Dahua ICC Open API SDK for Java
The newest version!
package com.dahuatech.icc.oauth.exception;
/**
* program:java-sdk
*/
public class BaseException extends RuntimeException {
/**
* 错误信息
* **/
private String errorMsg;
/**
* 错误代码
*/
private String code;
/**
* 用于构建错误描述的参数
*/
private Object args;
BaseException(){}
BaseException(String errorMsg){
this.errorMsg = errorMsg;
}
BaseException(String code, String errorMsg){
this.code = code;
this.errorMsg = errorMsg;
}
BaseException(String code, String errorMsg, Object args){
this.args = args;
this.errorMsg = errorMsg;
this.code = code;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Object getArgs() {
return args;
}
public void setArgs(Object args) {
this.args = args;
}
}