Method GetExceptionText
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
GetExceptionText(TException?)
Gets the formatted text representation of the exception.
protected virtual string GetExceptionText(TException? exception)
Parameters
exceptionTExceptionThe exception to format.
Returns
- string
A string containing the exception type name and message.