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-01-06 10:27:16 +00:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
|
|
|
|
{
|
2016-04-12 23:44:34 +00:00
|
|
|
|
public class CommandUnknownException : GracefulException
|
2016-01-06 10:27:16 +00:00
|
|
|
|
{
|
2016-12-17 06:41:06 +00:00
|
|
|
|
public CommandUnknownException(string commandName) : base(string.Format(
|
|
|
|
|
LocalizableStrings.NoExecutableFoundMatchingCommand,
|
|
|
|
|
commandName))
|
2016-01-06 10:27:16 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2016-12-17 06:41:06 +00:00
|
|
|
|
public CommandUnknownException(string commandName, Exception innerException) : base(
|
|
|
|
|
string.Format(
|
|
|
|
|
LocalizableStrings.NoExecutableFoundMatchingCommand,
|
|
|
|
|
commandName),
|
|
|
|
|
innerException)
|
2016-01-06 10:27:16 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-03 04:35:20 +00:00
|
|
|
|
}
|