Class ErrorCallbackHandler
This handler provides an OnError action that can be used as hook for external code to handle exceptions in the runtime pipeline.
public class ErrorCallbackHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
ErrorCallbackHandler
- Implements
- Inherited Members
Constructors
ErrorCallbackHandler()
public ErrorCallbackHandler()
Properties
OnError
Action to execute if an exception occurs during the execution of any underlying handlers.
public Action<IExecutionContext, Exception> OnError { get; set; }
Property Value
Methods
HandleException(IExecutionContext, Exception)
Executes the OnError action if an exception occurs during the execution of any underlying handlers.
protected void HandleException(IExecutionContext executionContext, Exception exception)
Parameters
executionContextIExecutionContextexceptionException
InvokeAsync<T>(IExecutionContext)
public override Task<T> InvokeAsync<T>(IExecutionContext executionContext) where T : AmazonWebServiceResponse, new()
Parameters
executionContextIExecutionContext
Returns
- Task<T>
Type Parameters
T
InvokeSync(IExecutionContext)
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContextIExecutionContext