public class NulsException extends Exception
| 限定符 | 构造器和说明 |
|---|---|
|
NulsException(ErrorCode message)
Constructs a new exception with the specified detail validator.
|
|
NulsException(ErrorCode errorCode,
String message) |
|
NulsException(ErrorCode message,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
protected |
NulsException(ErrorCode message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructs a new exception with the specified detail validator,
cause, suppression enabled or disabled, and writable stack
trace enabled or disabled.
|
|
NulsException(Throwable cause)
Constructs a new exception with the specified cause and a detail
validator of (cause==null ?
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
format() |
String |
getCustomMessage() |
ErrorCode |
getErrorCode() |
public NulsException(ErrorCode message)
Throwable.initCause(java.lang.Throwable).message - the detail validator. The detail validator is saved for
later retrieval by the Throwable.getMessage() method.public NulsException(ErrorCode message, Throwable cause)
cause is not automatically incorporated in
this exception's detail validator.message - the detail validator (which is saved for later retrieval
by the Throwable.getMessage() method).cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public NulsException(Throwable cause)
PrivilegedActionException).cause - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)protected NulsException(ErrorCode message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message - the detail validator.cause - the cause. (A null value is permitted,
and indicates that the cause is nonexistent or unknown.)enableSuppression - whether or not suppression is enabled
or disabledwritableStackTrace - whether or not the stack trace should
be writableCopyright © 2021. All rights reserved.