mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-29 09:18:05 +01:00
Add various exception improvements
This commit is contained in:
committed by
Patrik Svensson
parent
39a8588dc3
commit
68e92f3365
@@ -17,5 +17,16 @@ namespace Spectre.Console
|
||||
{
|
||||
Render(console, exception.GetRenderable(format));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes an exception to the console.
|
||||
/// </summary>
|
||||
/// <param name="console">The console.</param>
|
||||
/// <param name="exception">The exception to write to the console.</param>
|
||||
/// <param name="settings">The exception settings.</param>
|
||||
public static void WriteException(this IAnsiConsole console, Exception exception, ExceptionSettings settings)
|
||||
{
|
||||
Render(console, exception.GetRenderable(settings));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user