コード例 #1
0
        private static string CreateMessage(ParameterStructure result)
        {
            string message  = "Parameter " + result.Names[0] + " is Exclusive. Therefore you can't use it with other parameters.";
            string location = new PositionException(result.Flags, null).Message;
            string solution = "Remove the exclusive flag in line " + result.Flags.Line + " or don't set others here.";

            return(message + Environment.NewLine + location + Environment.NewLine + solution + Environment.NewLine);
        }
コード例 #2
0
 public NameAlreadyUsedException(string message, ParameterStructure parameter, ParameterStructure parameterStructure) : base(message)
 {
 }
コード例 #3
0
 public ParameterDoesNotExistException(ParameterStructure parameter, string other)
 {
 }
コード例 #4
0
 public ExclusiveParameterException(ParameterStructure result) : base(CreateMessage(result))
 {
 }
コード例 #5
0
 public ParameterNotAllowedException(ParameterStructure otherParameter, ParameterStructure parameter)
 {
 }