Class RelevantException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.miaixz.bus.core.lang.exception.RelevantException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RevisedException
类型: IO相关异常
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedRelevantException(Exception cause) protectedRelevantException(String message) 将抛出对象包裹成运行时异常,并增加自己的描述protectedRelevantException(String format, Object... args) 根据格式化字符串,生成运行时异常protectedRelevantException(String errcode, String errmsg) 将抛出对象包裹成运行时异常,并增加自己的描述protectedRelevantException(String message, Throwable cause) 将抛出对象包裹成运行时异常,并增加自己的描述protectedRelevantException(Throwable cause) 将抛出对象包裹成运行时异常,并增加自己的描述protectedRelevantException(Throwable e, String fmt, Object... args) 将抛出对象包裹成运行时异常,并增加自己的描述 -
Method Summary
Modifier and TypeMethodDescriptionprotected static RelevantException生成一个不可能的运行时异常protected static booleanprotected static RelevantException生成一个未实现的运行时异常protected static ThrowableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errcode
错误码 -
errmsg
错误信息
-
-
Constructor Details
-
RelevantException
protected RelevantException() -
RelevantException
将抛出对象包裹成运行时异常,并增加自己的描述- Parameters:
message- 打印信息
-
RelevantException
将抛出对象包裹成运行时异常,并增加自己的描述- Parameters:
cause- 抛出对象
-
RelevantException
-
RelevantException
将抛出对象包裹成运行时异常,并增加自己的描述- Parameters:
message- 打印信息cause- 抛出对象
-
RelevantException
将抛出对象包裹成运行时异常,并增加自己的描述- Parameters:
errcode- 错误编码errmsg- 错误提示
-
RelevantException
根据格式化字符串,生成运行时异常- Parameters:
format- 格式args- 参数
-
RelevantException
将抛出对象包裹成运行时异常,并增加自己的描述- Parameters:
e- 抛出对象fmt- 格式args- 参数
-
-
Method Details
-
noImplement
生成一个未实现的运行时异常- Returns:
- 一个未实现的运行时异常
-
impossible
生成一个不可能的运行时异常- Returns:
- 一个不可能的运行时异常
-
unwrapThrow
-
isCauseBy
-