2017-03-03 05:04:03 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System;
|
2016-04-12 23:44:34 +00:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-03 04:35:20 +00:00
|
|
|
|
}
|