This repository has been archived on 2025-09-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
dotnet-installer/src/Microsoft.DotNet.Cli.Utils/GracefulException.cs

21 lines
613 B
C#
Raw Normal View History

using System;
namespace Microsoft.DotNet.Cli.Utils
{
public class GracefulException : Exception
{
public GracefulException(string message) : base(message)
{
Data.Add(ExceptionExtensions.CLI_User_Displayed_Exception, true);
}
public GracefulException(string format, params string[] args) : this(string.Format(format, args))
{
}
public GracefulException(string message, Exception innerException) : base(message, innerException)
{
Data.Add(ExceptionExtensions.CLI_User_Displayed_Exception, true);
}
}
}