
**Inheritance:**
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.ms.System.ApplicationException, [com.aspose.tasks.ValidationException](../../com.aspose.tasks/validationexception), [com.aspose.tasks.RecalculationValidationException](../../com.aspose.tasks/recalculationvalidationexception)
```
public class TaskValidationException extends RecalculationValidationException
```

Represents an exception which is thrown when errors are found in project's tasks after recalculation.
## Methods

| Method | Description |
| --- | --- |
| [getTask()](#getTask--) | Gets the task which caused the exception. |
### getTask() {#getTask--}
```
public final Task getTask()
```


Gets the task which caused the exception.

**Returns:**
[Task](../../com.aspose.tasks/task) - the task which caused the exception.
