public class NulsRuntimeException extends RuntimeException
| 限定符 | 构造器和说明 |
|---|---|
|
NulsRuntimeException(ErrorCode errorCode)
Constructs a new exception with the specified detail validator.
|
|
NulsRuntimeException(ErrorCode errorCode,
String message)
Constructs a new exception with the specified detail validator.
|
|
NulsRuntimeException(ErrorCode errorCode,
String message,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
|
NulsRuntimeException(ErrorCode errorCode,
Throwable cause)
Constructs a new exception with the specified detail validator and
cause.
|
protected |
NulsRuntimeException(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.
|
|
NulsRuntimeException(Throwable cause)
Constructs a new exception with the specified cause and a detail
validator of (cause==null ?
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
format() |
String |
getCode() |
ErrorCode |
getErrorCode() |
String |
getMessage() |
void |
setCode(String code) |
public NulsRuntimeException(ErrorCode errorCode)
Throwable.initCause(java.lang.Throwable).errorCode - the detail validator. The detail validator is saved for
later retrieval by the getMessage() method.public NulsRuntimeException(ErrorCode errorCode, String message)
Throwable.initCause(java.lang.Throwable).errorCode - the detail validator. The detail validator is saved for
later retrieval by the getMessage() method.message - the detail message. The detail message is saved for
later retrieval by the getMessage() method.public NulsRuntimeException(ErrorCode errorCode, Throwable cause)
cause is not automatically incorporated in
this exception's detail validator.errorCode - the detail validator (which is saved for later retrieval
by the 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 NulsRuntimeException(ErrorCode errorCode, String message, Throwable cause)
cause is not automatically incorporated in
this exception's detail validator.errorCode - the detail validator (which is saved for later retrieval
by the getMessage() method).message - the detail message. The detail message is saved for
later retrieval by the 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 NulsRuntimeException(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 NulsRuntimeException(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.