# ReaderErrorCodes

Stable codes for inputs that could not be read.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[ReaderErrorCodes.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L15)

**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](/api/reader/officeimo-reader-readererrorcodes/).

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Fields

`public const string PasswordRequired` [#](#field-passwordrequired)

[ReaderErrorCodes.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L17)

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

Value: `password-required`

`public const string InvalidPassword` [#](#field-invalidpassword)

[ReaderErrorCodes.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L20)

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

Value: `invalid-password`

`public const string UnsupportedEncryption` [#](#field-unsupportedencryption)

[ReaderErrorCodes.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L23)

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

Value: `unsupported-encryption`

`public const string PermissionDenied` [#](#field-permissiondenied)

[ReaderErrorCodes.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L26)

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

Value: `permission-denied`

`public const string UnsupportedFormat` [#](#field-unsupportedformat)

[ReaderErrorCodes.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L29)

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` [#](#field-invalidcontent)

[ReaderErrorCodes.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L32)

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

Value: `invalid-content`

`public const string Timeout` [#](#field-timeout)

[ReaderErrorCodes.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L35)

A configured time limit, such as [ReaderOptions.LayoutTimeout](/api/reader/officeimo-reader-readeroptions/), was exceeded.

Value: `timeout`

`public const string NotFound` [#](#field-notfound)

[ReaderErrorCodes.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L38)

The file or directory does not exist.

Value: `not-found`

`public const string AccessDenied` [#](#field-accessdenied)

[ReaderErrorCodes.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L41)

The file system denied access to the input.

Value: `access-denied`

`public const string IOError` [#](#field-ioerror)

[ReaderErrorCodes.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L44)

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

Value: `io-error`

`public const string ReadFailed` [#](#field-readfailed)

[ReaderErrorCodes.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Reader.Core/ReaderErrorCodes.cs#L47)

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

Value: `read-failed`

<!-- PowerForge markdown artifact sha256:B643DF847A6C3E0D9C1806440361C4D6F056629C09BA7B1509CC6C9B9CBE9B04 -->
