public class SysException extends RuntimeException
通常表示应用代码存在问题,或因环境问题,引发异常。
| Modifier | Constructor and Description |
|---|---|
protected |
SysException(String message)
使用指定的
message 构造新的系统异常。 |
protected |
SysException(String message,
Throwable cause)
使用指定的
message 和 cause 构造新的系统异常。 |
protected |
SysException(Throwable cause)
使用指定的
cause 构造新的系统异常。 |
| Modifier and Type | Method and Description |
|---|---|
static SysException |
of() |
static SysException |
of(String message) |
static SysException |
of(String errorMessageFormat,
Object... errorMessageArgs) |
static SysException |
of(String message,
Throwable cause) |
static SysException |
of(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected SysException(String message)
message - 异常信息protected SysException(Throwable cause)
cause 构造新的系统异常。
message 为 (cause==null ? null : cause.toString())。cause - 包装的异常public static SysException of()
public static SysException of(String message)
public static SysException of(String errorMessageFormat, Object... errorMessageArgs)
public static SysException of(Throwable cause)
public static SysException of(String message, Throwable cause)
Copyright © 2026. All rights reserved.