2016-04-19 22:51:32 -05: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;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.CommandLine
|
|
|
|
|
{
|
|
|
|
|
internal class CommandParsingException : Exception
|
|
|
|
|
{
|
2016-12-16 06:41:47 -10:00
|
|
|
|
public CommandParsingException(
|
|
|
|
|
CommandLineApplication command,
|
|
|
|
|
string message,
|
|
|
|
|
bool isRequireSubCommandMissing = false)
|
2016-04-19 22:51:32 -05:00
|
|
|
|
: base(message)
|
|
|
|
|
{
|
|
|
|
|
Command = command;
|
2016-12-16 06:41:47 -10:00
|
|
|
|
IsRequireSubCommandMissing = isRequireSubCommandMissing;
|
2016-04-19 22:51:32 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CommandLineApplication Command { get; }
|
2016-12-16 06:41:47 -10:00
|
|
|
|
public bool IsRequireSubCommandMissing { get; }
|
2016-04-19 22:51:32 -05:00
|
|
|
|
}
|
|
|
|
|
}
|