Changeset 13013 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Void Methods/Back.cs
- Timestamp:
- 10/15/15 16:39:12 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Void Methods/Back.cs
r13011 r13013 27 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 28 29 namespace HeuristicLab.Problems.GeneticProgramming.Robo Code {29 namespace HeuristicLab.Problems.GeneticProgramming.Robocode { 30 30 [StorableClass] 31 31 public class Back : CodeNode { … … 60 60 var symbol = exprTree.Symbol; 61 61 if (!(symbol is NumericalExpression)) 62 throw new Exception("Back was given a child of type " + symbol.GetType() +63 ". The expected child must be of type " + typeof(NumericalExpression) + ".");62 throw new InvalidProgramException("Back was given a child of type " + symbol.GetType() + 63 ". The expected child must be of type NumericalExpression."); 64 64 65 65 string result = ((CodeNode)symbol).Interpret(exprTree, exprTree.Subtrees);
Note: See TracChangeset
for help on using the changeset viewer.