ExceptionFormats Enum

Represents how an exception is formatted.
[Flags]
public enum ExceptionFormats
Namespace
Spectre.Console
Interfaces
  • IComparable
  • ISpanFormattable
  • IFormattable
  • IConvertible
Base Types
  • ValueType
  • Enum

Attributes

FlagsAttribute

Fields

The default formatting.
Whether or not paths should be shortened.
Whether or not types should be shortened.
Whether or not methods should be shortened.
Shortens everything that can be shortened.
Whether or not to show paths as links in the terminal.
Whether or not to show the exception stack trace.

Extension Methods

T And<ExceptionFormats>(Action<ExceptionFormats>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.