-
Notifications
You must be signed in to change notification settings - Fork 7
Framework Exceptions
Marty Mathis edited this page Jan 22, 2019
·
14 revisions
PipelineExecutionException
This is the primary exception that can be raised during the execution of any pipeline by the framework. It serves as a wrapper exception. The framework will always throw a PipelineExecutionException
for any unhandled component exception that bubbles up with one exception. Any cancellation token related exceptions, OperationCancelledException
or TaskCancelledException
will not be wrapped in a PipelineExecutionException
. Instead they will be allowed to bubble up.
Here is an example of how you might want to handle exceptions from pipeline execution.
try
{
var result = await pipeline.ExecuteAsync(payload, cancellationToken);
}
catch (PipelineExecutionException executionException)
{
logger.Error(
executionException.InnerException,
"Pipeline execution halted! Component '{Name}' threw an unhandled exception.",
executionException.ThrowingComponent.Name);
}
PipelineComponentSettingNotFoundException
PipelineComponentNotFoundException