GetRenderable(Exception, ExceptionFormats) Method

Gets a IRenderable representation of the exception.
[RequiresDynamicCode(ExceptionFormatter.AotWarning)]
public static IRenderable GetRenderable(this Exception exception, ExceptionFormats format = Default)
Namespace
Spectre.Console
Containing Type
ExceptionExtensions

Attributes

RequiresDynamicCodeAttribute

Parameters

Exception exception
The exception to format.
ExceptionFormats format
The exception format options.

Returns