> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SendTaskToException

> SendTaskToException method in the ABBYY FlexiCapture web services API routes a task to the Exceptions stage, with an optional comment and post-processing flag.

## What it does

Sends a task to the Exceptions stage.

## Definition

```
void SendTaskToException( int sessionId, int taskId, string comment, bool needPostprocessing );
```

## Parameters

| **Name**           | **Type** | **Description**                                                      |
| ------------------ | -------- | -------------------------------------------------------------------- |
| sessionId          | int      | The ID of the connection to the Application Server                   |
| taskId             | int      | The ID of the task to be sent to the Exceptions stage                |
| comment            | string   | A comment to the task                                                |
| needPostprocessing | bool     | The flag which shows if post-processing is required. Possible values |

## Returned value

None.
