Package ej.sni

Class NativeException

    • Constructor Detail

      • NativeException

        public NativeException​(int errorCode,
                               String errorMessage)
        Constructs a new NativeException with the specified error code and detail message.
        Parameters:
        errorCode - the error code. The error code is saved for later retrieval by the getErrorCode() method.
        errorMessage - the detail message. The detail message is saved for later retrieval by the getMessage() method.
      • NativeException

        public NativeException​(int errorCode,
                               String errorMessage,
                               @Nullable
                               Throwable cause)
        Constructs a new NativeException with the specified error code, detail message and cause.
        Parameters:
        errorCode - the error code. The error code is saved for later retrieval by the getErrorCode() method.
        errorMessage - 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.)