Table of Contents

Class DocumentEncryptedException

Namespace
DocWright.Core
Assembly
DocWright.Core.dll

Thrown when a document is encrypted and DocWright cannot open it: no password was supplied, or the encryption scheme is one DocWright does not implement.

This is deliberately distinct from InvalidDocumentException. An encrypted package is not malformed — it is well-formed and unreadable for a reason the caller can act on, and telling the two apart is the difference between "supply a password" and "this file is corrupt".

The message never contains password, key or salt material.

public sealed class DocumentEncryptedException : DocWrightException, ISerializable
Inheritance
DocumentEncryptedException
Implements
Inherited Members

Constructors

DocumentEncryptedException()

Initializes the exception.

DocumentEncryptedException(string)

Initializes the exception with a message.

DocumentEncryptedException(string, string?)

Initializes the exception with a message and the scheme that was detected.

DocumentEncryptedException(string, string?, Exception?)

Initializes the exception with a message, a scheme and an inner exception.

Properties

EncryptionScheme

Gets the encryption scheme DocWright detected, if it got far enough to identify one.