Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandLineException"/> class
 /// </summary>
 /// <param name="parameterName">The name of command line parameter</param>
 /// <param name="parameterValue">The value of the command line parameter</param>
 /// <param name="parameterType">The type of the target to which this parameter will be applied</param>
 /// <param name="innerException">The inner exception</param>
 public CommandLineException(string parameterName, string parameterValue, Type parameterType, Exception innerException)
     : base(CommandLineException.MakeMessage(parameterName, parameterValue, parameterType, innerException), innerException)
 {
     this.ParameterName  = parameterName;
     this.ParameterValue = parameterValue;
     this.ParameterType  = parameterType;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandLineException"/> class
 /// </summary>
 /// <param name="parameterName">The name of command line parameter</param>
 /// <param name="parameterValue">The value of the command line parameter</param>
 /// <param name="reason">The type of the target to which this parameter will be applied</param>
 public CommandLineException(string parameterName, string parameterValue, string reason)
     : base(CommandLineException.MakeMessage(parameterName, parameterValue, reason))
 {
     this.ParameterName  = parameterName;
     this.ParameterValue = parameterValue;
 }