Show / Hide Table of Contents

Interface IHandlesProcessingError

A specialisation of IProcessesExpressionContext which is able to handle errors during the rendering process.

Inherited Members
IProcessesExpressionContext.ProcessContextAsync(ExpressionContext, CancellationToken)
Namespace: ZptSharp.Rendering
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IHandlesProcessingError : IProcessesExpressionContext

Methods

| Improve this Doc View Source

HandleErrorAsync(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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX