Table of Contents

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

message Exception

The exception to be written. Can be null.

formatterProcessor IMessageFormatterProcessor

Optional formatter processor that can be used to format the message. Not used in this implementation.

formatProvider IFormatProvider

Unused. Exception text is already rendered, so there is nothing for a provider to format; the parameter is present only to satisfy the contract.