**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception
```
public class AsyncTaskException extends System.Exception
```

The exception for the asynchronous task.
## Constructors

| Constructor | Description |
| --- | --- |
| [AsyncTaskException(String message)](#AsyncTaskException-java.lang.String-) | Initializes a new instance of the [AsyncTaskException](../../com.aspose.imaging.asynctask/asynctaskexception) class. |
### AsyncTaskException(String message) {#AsyncTaskException-java.lang.String-}
```
public AsyncTaskException(String message)
```


Initializes a new instance of the [AsyncTaskException](../../com.aspose.imaging.asynctask/asynctaskexception) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| message | java.lang.String | The message that describes the error. |

