Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderErrorCodes

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
56dd0d38e0b5 with working tree changes
Modifiers
static

Stable codes for inputs that could not be read. Batch outcomes and folder documents report one of these values so callers can branch on the cause without matching exception types or messages.

Inheritance

  • object
  • ReaderErrorCodes

Remarks

Codes are lower-case, hyphenated and never renamed. New codes may be added; treat an unrecognized code like ReaderErrorCodes.ReadFailed.

Fields

public const string PasswordRequired #

The input is encrypted and no password was supplied, or the empty password was not accepted.

Value: password-required
public const string InvalidPassword #

The input is encrypted and the supplied password did not open it.

Value: invalid-password
public const string UnsupportedEncryption #

The input uses an encryption method, or a certificate-based protection, that the reader cannot open.

Value: unsupported-encryption
public const string PermissionDenied #

The input opened, but its own permissions do not allow content extraction.

Value: permission-denied
public const string UnsupportedFormat #

No configured handler reads the input, or the input uses a format feature the handler does not support.

Value: unsupported-format
public const string InvalidContent #

The input is damaged, truncated or not valid for its detected format.

Value: invalid-content
public const string Timeout #

A configured time limit, such as ReaderOptions.LayoutTimeout, was exceeded.

Value: timeout
public const string NotFound #

The file or directory does not exist.

Value: not-found
public const string AccessDenied #

The file system denied access to the input.

Value: access-denied
public const string IOError #

The input could not be read because of an I/O failure.

Value: io-error
public const string ReadFailed #

The read failed for a reason without a more specific code.

Value: read-failed