2016-04-12 23:44:34 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
|
|
|
|
{
|
|
|
|
|
public class GracefulException : Exception
|
|
|
|
|
{
|
|
|
|
|
public GracefulException(string message) : base(message)
|
|
|
|
|
{
|
2017-01-30 22:36:44 +00:00
|
|
|
|
Data.Add(ExceptionExtensions.CLI_User_Displayed_Exception, true);
|
2016-04-12 23:44:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-23 18:41:30 +00:00
|
|
|
|
public GracefulException(string format, params string[] args) : this(string.Format(format, args))
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2016-04-12 23:44:34 +00:00
|
|
|
|
public GracefulException(string message, Exception innerException) : base(message, innerException)
|
|
|
|
|
{
|
2017-01-30 22:36:44 +00:00
|
|
|
|
Data.Add(ExceptionExtensions.CLI_User_Displayed_Exception, true);
|
2016-04-12 23:44:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|