namespace Spectre.Console; /// /// Contains extension methods for . /// public static partial class AnsiConsoleExtensions { /// /// Writes an exception to the console. /// /// The console. /// The exception to write to the console. /// The exception format options. public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionFormats format = ExceptionFormats.Default) { console.Write(exception.GetRenderable(format)); } /// /// Writes an exception to the console. /// /// The console. /// The exception to write to the console. /// The exception settings. public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionSettings settings) { console.Write(exception.GetRenderable(settings)); } }