Example #1
0
 /// <summary>
 /// Throws an exception if any errors were found while parsing the command-line.
 /// </summary>
 internal void ThrowErrors()
 {
     if (HaveErrors())
     {
         if (_isParameterError)
         {
             InitializationException.Throw(_errorMessage, _badCommandLineArg, _innerException, false);
         }
         else
         {
             CommandLineSwitchException.Throw(_errorMessage, _badCommandLineArg);
         }
     }
 }
Example #2
0
 internal void ThrowErrors()
 {
     if (this.HaveErrors())
     {
         if (this.isParameterError)
         {
             InitializationException.Throw(this.errorMessage, this.badCommandLineArg, this.innerException, false);
         }
         else
         {
             CommandLineSwitchException.Throw(this.errorMessage, this.badCommandLineArg);
         }
     }
 }