DocumentProtectedException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.groupdocs.markdown.GroupDocsMarkdownException

public final class DocumentProtectedException extends GroupDocsMarkdownException

Thrown when a document is password-protected and no password (or an incorrect password) was provided via LoadOptions.setPassword(…).

Constructors

Constructor Description
DocumentProtectedException() Creates exception with default message.
DocumentProtectedException(String message, Throwable cause) Creates exception with custom message and cause.

DocumentProtectedException()

public DocumentProtectedException()

Creates exception with default message.

DocumentProtectedException(String message, Throwable cause)

public DocumentProtectedException(String message, Throwable cause)

Creates exception with custom message and cause.

Parameters:

Parameter Type Description
message java.lang.String the error message
cause java.lang.Throwable the underlying exception