public final class D1Exception extends Exception
When an error occurs and support is required, it is recommended to include the getErrorCode()
as well as the stack trace of error in the report.
Modifier and Type | Class and Description |
---|---|
static class |
D1Exception.ErrorCode
D1 error code.
|
Constructor and Description |
---|
D1Exception(D1Exception.ErrorCode errorCode)
Construct a D1Exception with the specific error code.
|
D1Exception(D1Exception.ErrorCode errorCode,
Throwable cause)
Construct a D1Exception with an error code and the cause.
|
D1Exception(D1Exception.ErrorCode errorCode,
Throwable cause,
int causeErrorCode)
Construct a D1Exception with error code, cause and the cause's error code.
|
Modifier and Type | Method and Description |
---|---|
D1Exception.ErrorCode |
getErrorCode()
Retrieve the
D1Exception.ErrorCode of this exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public D1Exception(@NonNull D1Exception.ErrorCode errorCode)
errorCode
- The error code of this exception.public D1Exception(@NonNull D1Exception.ErrorCode errorCode, @NonNull Throwable cause)
errorCode
- The error code.cause
- The cause.public D1Exception(@NonNull D1Exception.ErrorCode errorCode, @NonNull Throwable cause, int causeErrorCode)
errorCode
- The D1 error code.cause
- The cause of the exception.causeErrorCode
- The error code of the cause.@NonNull public D1Exception.ErrorCode getErrorCode()
D1Exception.ErrorCode
of this exception.D1Exception.ErrorCode
.