namespace Spectre.Console.Cli; /// /// Represents errors that occur during application execution. /// public abstract class CommandAppException : Exception { /// /// Gets the pretty formatted exception message. /// public IRenderable? Pretty { get; } internal virtual bool AlwaysPropagateWhenDebugging => false; internal CommandAppException(string message, IRenderable? pretty = null) : base(message) { Pretty = pretty; } internal CommandAppException(string message, Exception ex, IRenderable? pretty = null) : base(message, ex) { Pretty = pretty; } }