Table of Contents

Class TerminalExceptionHandler

Namespace
OneImlx.Terminal.Runtime
Assembly
OneImlx.Terminal.dll

The default ITerminalExceptionHandler to handle an Exception.

public class TerminalExceptionHandler : ITerminalExceptionHandler
Inheritance
TerminalExceptionHandler
Implements
Inherited Members

Constructors

TerminalExceptionHandler(ILogger<TerminalExceptionHandler>)

Initialize a new instance.

public TerminalExceptionHandler(ILogger<TerminalExceptionHandler> logger)

Parameters

logger ILogger<TerminalExceptionHandler>

The logger.

Methods

HandleExceptionAsync(TerminalExceptionHandlerContext)

Publish the Exception asynchronously to the logger.

public Task HandleExceptionAsync(TerminalExceptionHandlerContext context)

Parameters

context TerminalExceptionHandlerContext

The error to publish.

Returns

Task

The string representation.