FromException()
Contents
[
Hide
]System::Threading::Tasks::FromException(const Exception&) function
Creates a task that has completed with a specified exception.
TaskPtr System::Threading::Tasks::FromException(const Exception &exception)
Arguments
| Parameter | Type | Description |
|---|---|---|
| exception | const Exception& | The exception with which to complete the task. |
Return Value
A faulted task.
System::Threading::Tasks::FromException(const Exception&) function
Creates a task that has completed with a specified exception and result type.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromException(const Exception &exception)
Template parameters
| Parameter | Description |
|---|---|
| TResult | The type of the task’s result. |
Arguments
| Parameter | Type | Description |
|---|---|---|
| exception | const Exception& | The exception with which to complete the task. |
Return Value
A faulted task with the specified result type.
See Also
- Typedef TaskPtr
- Typedef Exception
- Typedef RTaskPtr
- Namespace System::Threading::Tasks
- Library Aspose.Slides