using System; 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) { Render(console, 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) { Render(console, exception.GetRenderable(settings)); } } }