-
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, sync or async. Here is an example of how you might want to handle exceptions from pipeline execution.
try
{
var result = await pipeline.ExecuteAsync(new ExamplePipelinePayload(), CancellationToken.None);
}
catch (OperationCanceledException)
{
throw;
}
catch (PipelineExecutionException executionException)
{
logger.Error(
executionException.InnerException,
"Pipeline execution halted! Component '{ComponentName}' threw an unhandled exception.",
executionException.ThrowingComponent.Name);
}
PipelineComponentSettingNotFoundException
PipelineComponentNotFoundException