public CommandParseException(CommandParseError error, string[] args, bool isParse, Exception innerException)
     : base(innerException.Message, innerException)
 {
     this.Error     = error;
     this.Arguments = args;
     this.IsParse   = isParse;
 }
Пример #2
0
        public void TestParseArrayErrors(string text, CommandParseErrorKind expectedKind)
        {
            CommandParser parser = CommandParser.TryCreate(text);

            CommandParseError error = Assert.Throws <CommandParseError>(() => parser.ParseArray());

            Assert.Equal(expectedKind, error.Kind);
        }
 public CommandParseException(CommandParseError error, string[] args, bool isParse)
     : this(error, args, isParse, null)
 {
 }