Class ZerowebRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.xezzon.zeroweb.common.exception.ZerowebRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidTokenException, NoValidClasspathException
ZeroWeb 自发抛出的运行时异常基类。 所有 ZeroWeb 内部业务逻辑或系统操作中抛出的运行时异常都应继承此类。
提供了两个构造函数:
- 接受详细消息和根本原因。
- 仅接受根本原因。
- Author:
- xezzon
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionZerowebRuntimeException(String message, Throwable cause) 构造一个新的ZerowebRuntimeException,附带指定的详细消息和根本原因。ZerowebRuntimeException(Throwable cause) 构造一个新的ZerowebRuntimeException,附带指定的根本原因和详细消息 `(cause==null ? -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ZerowebRuntimeException
-
ZerowebRuntimeException
构造一个新的ZerowebRuntimeException,附带指定的根本原因和详细消息(cause==null ? null : cause.toString())(通常包含cause的类和详细消息)。 此构造函数对于包装其他可抛出对象以进行重新抛出非常有用。- Parameters:
cause- 根本原因(稍后可通过Throwable.getCause()方法检索)。null值表示原因不存在或未知。
-