WriteException(Exception, ExceptionFormats) Method

Writes an exception to the console.
[RequiresDynamicCode(ExceptionFormatter.AotWarning)]
public static void WriteException(Exception exception, ExceptionFormats format = Default)
Namespace
Spectre.Console
Containing Type
AnsiConsole

Attributes

RequiresDynamicCodeAttribute

Parameters

Exception exception
The exception to write to the console.
ExceptionFormats format
The exception format options.