All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.dyaoming.errors.BaseException Maven / Gradle / Ivy

package cn.dyaoming.errors;


/**
 * 

* 基础异常类 *

* * @author DYAOMING */ public class BaseException extends RuntimeException { private static final long serialVersionUID = -20021811335698269L; /** * 异常错误码 */ private String code; /** *

* 构造函数 *

*/ public BaseException() { super(); } /** *

* 构造函数 *

* * @param message String类型 异常信息 */ public BaseException(String message) { super(message); } /** *

* 构造函数 *

* * @param code String类型 异常标识 * @param message String类型 异常信息 */ public BaseException(String code, String message) { super(message); setCode(code); } /** *

* 构造函数 *

* * @param message String类型 异常信息 * @param cause Throwable类型 异常 */ public BaseException(String message, Throwable cause) { super(message, cause); } /** *

* 构造函数 *

* * @param code String类型 异常标识 * @param message String类型 异常信息 * @param cause Throwable类型 异常 */ public BaseException(String code, String message, Throwable cause) { super(message, cause); setCode(code); } /** *

* 构造函数 *

* * @param cause Throwable类型 异常 */ public BaseException(Throwable cause) { super(cause); } public String getCode() { return code; } public void setCode(String code) { this.code = code; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy