- Timestamp:
- 09/17/16 18:34:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/TableFileParser.cs
r14185 r14285 606 606 607 607 private void Error(string message, string token, int lineNumber) { 608 throw new DataFormatException("Error while parsing.\n" + message, token, lineNumber);608 throw new IOException(string.Format("Error while parsing. {0} (token: {1} lineNumber: {2}).", message, token, lineNumber)); 609 609 } 610 610 #endregion 611 612 [Serializable]613 public class DataFormatException : Exception {614 private int line;615 public int Line {616 get { return line; }617 }618 private string token;619 public string Token {620 get { return token; }621 }622 public DataFormatException(string message, string token, int line)623 : base(message + "\nToken: " + token + " (line: " + line + ")") {624 this.token = token;625 this.line = line;626 }627 628 public DataFormatException(SerializationInfo info, StreamingContext context) : base(info, context) { }629 }630 611 } 631 612 }
Note: See TracChangeset
for help on using the changeset viewer.