mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
43 lines
961 B
C#
43 lines
961 B
C#
namespace Spectre.Console;
|
|
|
|
/// <summary>
|
|
/// Represents how an exception is formatted.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum ExceptionFormats
|
|
{
|
|
/// <summary>
|
|
/// The default formatting.
|
|
/// </summary>
|
|
Default = 0,
|
|
|
|
/// <summary>
|
|
/// Whether or not paths should be shortened.
|
|
/// </summary>
|
|
ShortenPaths = 1,
|
|
|
|
/// <summary>
|
|
/// Whether or not types should be shortened.
|
|
/// </summary>
|
|
ShortenTypes = 2,
|
|
|
|
/// <summary>
|
|
/// Whether or not methods should be shortened.
|
|
/// </summary>
|
|
ShortenMethods = 4,
|
|
|
|
/// <summary>
|
|
/// Whether or not to show paths as links in the terminal.
|
|
/// </summary>
|
|
ShowLinks = 8,
|
|
|
|
/// <summary>
|
|
/// Shortens everything that can be shortened.
|
|
/// </summary>
|
|
ShortenEverything = ShortenMethods | ShortenTypes | ShortenPaths,
|
|
|
|
/// <summary>
|
|
/// Whether or not to show the exception stack trace.
|
|
/// </summary>
|
|
NoStackTrace = 16,
|
|
} |