PasswordRequiredException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.groupdocs.foundation.exception.GroupDocsException, com.groupdocs.viewer.exception.GroupDocsViewerException

public class PasswordRequiredException extends GroupDocsViewerException

This exception is thrown when a password is required to load the document. This exception typically occurs when attempting to load or open a document that is encrypted or password-protected without providing valid password.

Constructors

Constructor Description
PasswordRequiredException() Initializes a new instance of the PasswordRequiredException class.
PasswordRequiredException(String message) Initializes a new instance of the PasswordRequiredException class with a custom exception message.
PasswordRequiredException(String message, Throwable throwable) Initializes a new instance of the PasswordRequiredException class with a specified error message.

PasswordRequiredException()

public PasswordRequiredException()

Initializes a new instance of the PasswordRequiredException class.

PasswordRequiredException(String message)

public PasswordRequiredException(String message)

Initializes a new instance of the PasswordRequiredException class with a custom exception message.

Parameters:

Parameter Type Description
message java.lang.String

PasswordRequiredException(String message, Throwable throwable)

public PasswordRequiredException(String message, Throwable throwable)

Initializes a new instance of the PasswordRequiredException class with a specified error message.

Parameters:

Parameter Type Description
message java.lang.String The message.
throwable java.lang.Throwable The throwable.