类 CahException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- tech.testnx.cah.common.exceptions.CahException
-
- 所有已实现的接口:
Serializable,SelfHandle<CahException>
public class CahException extends RuntimeException implements SelfHandle<CahException>
- 作者:
- Yun
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 CahException(ExceptionSeverityEnum severity, String message, Object information)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbyHandler(HandleException<CahException> handler)Self handle exception by customized handler<T> TgetInformation(Class<T> cls)ExceptionSeverityEnumgetSeverity()static CahExceptionnewInstance(Object information)static CahExceptionnewInstance(String message, Object information)static CahExceptionnewInstance(ExceptionSeverityEnum severity, Object information)static CahExceptionnewInstance(ExceptionSeverityEnum severity, String message, Object information)voidsetInformation(Object information)voidsetSeverity(ExceptionSeverityEnum severity)
-
-
-
构造器详细资料
-
CahException
public CahException(ExceptionSeverityEnum severity, String message, Object information)
-
-
方法详细资料
-
newInstance
public static CahException newInstance(ExceptionSeverityEnum severity, String message, Object information)
-
newInstance
public static CahException newInstance(String message, Object information)
-
newInstance
public static CahException newInstance(ExceptionSeverityEnum severity, Object information)
-
newInstance
public static CahException newInstance(Object information)
-
getSeverity
public ExceptionSeverityEnum getSeverity()
-
setSeverity
public void setSeverity(ExceptionSeverityEnum severity)
-
getInformation
public <T> T getInformation(Class<T> cls)
-
setInformation
public void setInformation(Object information)
-
byHandler
public void byHandler(HandleException<CahException> handler)
Self handle exception by customized handler- 指定者:
byHandler在接口中SelfHandle<CahException>
-
-