Method WriteException
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
WriteException<TException>(TException?)
Writes an exception with detailed formatting to the console.
public IOutput WriteException<TException>(TException? exception) where TException : Exception
Parameters
exceptionTExceptionThe exception to write.
Returns
- IOutput
The current output instance for method chaining.
Type Parameters
TExceptionThe type of the exception to write.