# OfficeDocumentProcessorFailureBehavior

Controls how a processor pipeline responds to processor failures.

Enum 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[OfficeDocumentProcessingModels.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/OfficeDocumentProcessingModels.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Controls how a processor pipeline responds to processor failures.

## Inheritance

- Enum
- OfficeDocumentProcessorFailureBehavior

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Reader and Extraction](/docs/reader/) Guide
  
  Deterministic document extraction, rich results, structured records, RAG chunking, and optional OCR with OfficeIMO.Reader.

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 5

- Property [OfficeDocumentProcessingOptions.FailureBehavior](/api/reader/officeimo-reader-officedocumentprocessingoptions/#property-failurebehavior)
- Field [OfficeDocumentProcessorFailureBehavior.ContinueWithDiagnostic](/api/reader/officeimo-reader-officedocumentprocessorfailurebehavior/#field-continuewithdiagnostic)
- Field [OfficeDocumentProcessorFailureBehavior.StopWithDiagnostic](/api/reader/officeimo-reader-officedocumentprocessorfailurebehavior/#field-stopwithdiagnostic)
- Field [OfficeDocumentProcessorFailureBehavior.Throw](/api/reader/officeimo-reader-officedocumentprocessorfailurebehavior/#field-throw)
- Property [OfficeDocumentReader.ProcessorFailureBehavior](/api/reader/officeimo-reader-officedocumentreader/#property-processorfailurebehavior)

### Accepted by parameters 1

- Method [OfficeDocumentReaderBuilder.WithProcessorFailureBehavior](/api/reader/officeimo-reader-officedocumentreaderbuilder/#method-withprocessorfailurebehavior-officeimo-reader-officedocumentprocessorfailurebehavior) parameter `failureBehavior`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const OfficeDocumentProcessorFailureBehavior Throw` [#](#field-throw)

[OfficeDocumentProcessingModels.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/OfficeDocumentProcessingModels.cs#L6)

Throw an [OfficeDocumentProcessorException](/api/reader/officeimo-reader-officedocumentprocessorexception/) immediately.

Value: `0`

`public const OfficeDocumentProcessorFailureBehavior ContinueWithDiagnostic` [#](#field-continuewithdiagnostic)

[OfficeDocumentProcessingModels.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/OfficeDocumentProcessingModels.cs#L8)

Add a structured diagnostic and continue with the next processor.

Value: `1`

`public const OfficeDocumentProcessorFailureBehavior StopWithDiagnostic` [#](#field-stopwithdiagnostic)

[OfficeDocumentProcessingModels.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/OfficeDocumentProcessingModels.cs#L10)

Add a structured diagnostic and skip the remaining processors.

Value: `2`

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