Show / Hide Table of Contents

Class ErrorHandlingContext

A model/contaier object which represents a context and additionally a handler which may be able to handle errors encountered during context processing.

Inheritance
System.Object
ErrorHandlingContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Expressions
Assembly: ZptSharp.Abstractions.dll
Syntax
public class ErrorHandlingContext

Constructors

| Improve this Doc View Source

ErrorHandlingContext(ExpressionContext, IHandlesProcessingError)

Initializes a new instance of the ErrorHandlingContext class.

Declaration
public ErrorHandlingContext(ExpressionContext context, IHandlesProcessingError handler)
Parameters
Type Name Description
ExpressionContext context

Context.

IHandlesProcessingError handler

Handler.

Properties

| Improve this Doc View Source

Handler

Gets the handler implementation which would handle exceptions.

Declaration
public IHandlesProcessingError Handler { get; }
Property Value
Type Description
IHandlesProcessingError

The handler.

Methods

| Improve this Doc View Source

HandleErrorAsync(Exception, CancellationToken)

Attempts to handle the error.

Declaration
public Task<ErrorHandlingResult> HandleErrorAsync(Exception exception, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
System.Exception exception

Exception.

System.Threading.CancellationToken token

Token.

Returns
Type Description
System.Threading.Tasks.Task<ErrorHandlingResult>

The error-handling result.

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