Package tech.xmagic.exception
Class AbstractRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tech.xmagic.exception.AbstractRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiLocalRuntimeException,ApiNativeRuntimeException,ApiRemoteRuntimeException,ApiRpcRuntimeException,ApiRuntimeException,ApiTimeoutRuntimeException,CustomRuntimeException,DataBaseRuntimeException,DataRuntimeException,FailureRuntimeException,ForbiddenRuntimeException,Http1xxRuntimeException,Http2xxRuntimeException,Http3xxRuntimeException,Http4xxRuntimeException,Http5xxRuntimeException,MqRuntimeException,MqTimeOutRuntimeException,NotifyRuntimeException,NotifyTimeOutRuntimeException,SqlRuntimeException,SysDeCodeRuntimeException,SysDeCryptRuntimeException,SysEnCodeRuntimeException,SysEnCryptRuntimeException,SysNotSupportRuntimeException,SysParseRuntimeException,SysRuntimeException,SysSignRuntimeException,SysVerifyRuntimeException,SysWrapRuntimeException,UnauthorizedRuntimeException,UnKnownRuntimeException,ValidationRuntimeException
基于运行时异常
统一异常基类(包含异常类,业务失败类,验证类等)
错误分为两级提示
msg:错误的简单提示
message:详细的错误提示内容
- Since:
- 1.0.1
- Version:
- 1.0.1
- Author:
- xmagic
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractRuntimeException(int code, String msg) 完整的异常(无错误详情,无标签)AbstractRuntimeException(int code, String msg, String err) 完整的异常(无标签)AbstractRuntimeException(int code, String msg, String err, String tag) 完整的异常AbstractRuntimeException(ResultCode resultCode) 完整的异常(无错误详情,无标签)AbstractRuntimeException(ResultCode resultCode, String err) 完整的异常(无标签)AbstractRuntimeException(ResultCode resultCode, String err, String tag) 完整的异常 -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbstractRuntimeException
完整的异常- Parameters:
code- 错误代码msg- 错误提示err- 错误详情tag- 标签
-
AbstractRuntimeException
完整的异常(无标签)- Parameters:
code- 错误代码msg- 错误提示err- 错误详情
-
AbstractRuntimeException
完整的异常(无错误详情,无标签)- Parameters:
code- 错误代码msg- 错误提示
-
AbstractRuntimeException
完整的异常- Parameters:
resultCode- 错误枚举err- 错误详情tag- 标签
-
AbstractRuntimeException
完整的异常(无标签)- Parameters:
resultCode- 错误枚举err- 错误详情
-
AbstractRuntimeException
完整的异常(无错误详情,无标签)- Parameters:
resultCode- 错误枚举
-
-
Method Details
-
getCode
public int getCode() -
getMsg
-
getErr
-
getTag
-