Method Write
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Write(Exception?, IMessageFormatterProcessor?, IFormatProvider?)
Writes an exception message to the configured output.
public override void Write(Exception? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
messageExceptionThe exception to be written. Can be null.
formatterProcessorIMessageFormatterProcessorOptional formatter processor that can be used to format the message. Not used in this implementation.
formatProviderIFormatProviderUnused. Exception text is already rendered, so there is nothing for a provider to format; the parameter is present only to satisfy the contract.