Class CodeupSoftBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codeupsoft.base.common.exception.CodeupSoftBaseException
- All Implemented Interfaces:
Serializable
自定义基础异常类,用于封装业务异常信息.
- Since:
- 1.0.0
- Author:
- Liu,Dongdong
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCodeupSoftBaseException(int code, String message) 构造函数,使用指定的错误码和错误消息.CodeupSoftBaseException(int code, String message, Throwable cause) 构造函数,使用指定的错误码、错误消息和原因.CodeupSoftBaseException(Response<Integer, Void> response) 构造函数,基于响应对象构建异常.CodeupSoftBaseException(Response<Integer, Void> response, Throwable cause) 构造函数,基于响应对象和异常原因构建异常.CodeupSoftBaseException(String message) 构造函数,使用默认错误码和指定的错误消息.CodeupSoftBaseException(String message, Throwable cause) 构造函数,使用默认错误码、指定的错误消息和原因. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CodeupSoftBaseException
-
CodeupSoftBaseException
-
CodeupSoftBaseException
构造函数,使用指定的错误码和错误消息.- Parameters:
code- 错误码message- 错误消息
-
CodeupSoftBaseException
-
CodeupSoftBaseException
-
CodeupSoftBaseException
-