Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/15 16:39:12 (9 years ago)
Author:
gkronber
Message:

#2069: reviewing and minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Logical Expressions/LogicalExpression.cs

    r13011 r13013  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828
    29 namespace HeuristicLab.Problems.GeneticProgramming.RoboCode {
     29namespace HeuristicLab.Problems.GeneticProgramming.Robocode {
    3030  [StorableClass]
    3131  public class LogicalExpression : CodeNode {
     
    5656      var symbol = exprTree.Symbol;
    5757      if (!(symbol is LogicalValue || symbol is Conjunction || symbol is Disjunction || symbol is Negation))
    58         throw new System.Exception("LogicalExpression was given a child of type " + symbol.GetType() +
    59             ". The expected child must be of type " + typeof(LogicalValue)
    60                                            + " or " + typeof(Conjunction)
    61                                            + " or " + typeof(Disjunction)
    62                                            + " or " + typeof(Negation) + ".");
     58        throw new InvalidProgramException("Negation was given a child of type " + symbol.GetType() +
     59            ". The expected child must be of type LogicalValue or Conjunction or Disjunction or Negation.");
    6360
    6461      return Prefix + ((CodeNode)symbol).Interpret(exprTree, exprTree.Subtrees) + Suffix;
Note: See TracChangeset for help on using the changeset viewer.