Changeset 9405 for trunk/sources
- Timestamp:
- 04/30/13 10:53:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/OperatorExecutionException.cs
r9339 r9405 25 25 namespace HeuristicLab.Core { 26 26 public class OperatorExecutionException : Exception { 27 private IOperator op;27 private readonly IOperator op; 28 28 public IOperator Operator { 29 29 get { return op; } 30 30 } 31 32 private readonly string message; 31 33 public override string Message { 32 34 get { … … 38 40 } 39 41 if (InnerException == null) 40 return base.Message + name + ".";42 return base.Message + name + message + "."; 41 43 else 42 44 return base.Message + name + ": " + InnerException.Message; … … 44 46 } 45 47 46 public OperatorExecutionException(IOperator op) 48 public OperatorExecutionException(IOperator op) : this(op, string.Empty) { } 49 public OperatorExecutionException(IOperator op, string message) 47 50 : base("An exception was thrown by the operator ") { 48 51 if (op == null) throw new ArgumentNullException(); 49 52 this.op = op; 53 this.message = message; 50 54 } 51 55 public OperatorExecutionException(IOperator op, Exception innerException)
Note: See TracChangeset
for help on using the changeset viewer.