Class TerminalExceptionHandler
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
TerminalExceptionHandlerContextThe error to publish.
Returns
- Task
The string representation.