Interface IHandlesProcessingError
A specialisation of IProcessesExpressionContext which is able to handle errors during the rendering process.
Inherited Members
Namespace: ZptSharp.Rendering
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IHandlesProcessingError : IProcessesExpressionContext
Methods
| Improve this Doc View SourceHandleErrorAsync(Exception, ExpressionContext, CancellationToken)
Handles an error which was encountered whilst processing an expression context.
Declaration
Task<ErrorHandlingResult> HandleErrorAsync(Exception ex, ExpressionContext context, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | The exception indicating the error. |
ExpressionContext | context | The context to process. |
System.Threading.CancellationToken | token | An optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ErrorHandlingResult> | A result object indicating the outcome of error handling. |