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, 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, 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.