Class D1Exception

  • All Implemented Interfaces:
    Serializable

    public final class D1Exception
    extends Exception
    The D1 exception.

    When an error occurs and support is required, it is recommended to include getErrorCode() as well as the stack trace of error in the report.

    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • D1Exception

        public D1Exception​(@NonNull
                           D1Exception.ErrorCode errorCode)
        Constructs a D1Exception with the specific error code.
        Parameters:
        errorCode - The error code of this exception.
      • D1Exception

        public D1Exception​(@NonNull
                           D1Exception.ErrorCode errorCode,
                           @NonNull
                           Throwable cause,
                           int causeErrorCode)
        Constructs a D1Exception with the error code, cause and the cause's error code.
        Parameters:
        errorCode - The D1 error code.
        cause - The cause of the exception.
        causeErrorCode - The error code of the cause.