Class BaseExceptionMessageFormatter<TException>
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Base formatter for exception messages that handles formatting of exception type, message, and inner exceptions.
public class BaseExceptionMessageFormatter<TException> : TypeMessageFormatter<TException>, IMessageFormatter<TException>, IMessageFormatter, IMessageHandler where TException : Exception
Type Parameters
TExceptionThe type of exception this formatter handles.
- Inheritance
-
TypeMessageHandler<TException>TypeMessageFormatter<TException>BaseExceptionMessageFormatter<TException>
- Implements
-
IMessageFormatter<TException>
- Derived
- Inherited Members
Methods
- GetExceptionText(TException?)
Gets the formatted text representation of the exception.
- GetInnerExceptionMessage(Exception?)
Gets a formatted message for an inner exception if one exists.
- GetMessage(TException?, IMessageFormatterProcessor?, IFormatProvider?)
Formats an exception into a human-readable message string.