PasswordRequiredException
Leave feedback
On this page
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.
| 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. |
public PasswordRequiredException()
Initializes a new instance of the PasswordRequiredException class.
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 |
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. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.