mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-19 02:12:49 +08:00
27 lines
933 B
C#
27 lines
933 B
C#
namespace Spectre.Console;
|
|
|
|
/// <summary>
|
|
/// A console capable of writing ANSI escape sequences.
|
|
/// </summary>
|
|
public static partial class AnsiConsole
|
|
{
|
|
/// <summary>
|
|
/// Writes an exception to the console.
|
|
/// </summary>
|
|
/// <param name="exception">The exception to write to the console.</param>
|
|
/// <param name="format">The exception format options.</param>
|
|
public static void WriteException(Exception exception, ExceptionFormats format = ExceptionFormats.Default)
|
|
{
|
|
Console.WriteException(exception, format);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Writes an exception to the console.
|
|
/// </summary>
|
|
/// <param name="exception">The exception to write to the console.</param>
|
|
/// <param name="settings">The exception settings.</param>
|
|
public static void WriteException(Exception exception, ExceptionSettings settings)
|
|
{
|
|
Console.WriteException(exception, settings);
|
|
}
|
|
} |