using System; using Spectre.Console.Rendering; namespace Spectre.Console.Cli { /// /// Represents errors that occur during application execution. /// public abstract class CommandAppException : Exception { internal 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; } } }