Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/11 10:52:22 (13 years ago)
Author:
mkommend
Message:

Prepared 3.4 project stubs for refactoring and added interfaces in Problems.DataAnalysis 3.4 (ticket #1418).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis/3.4/TableFileParser.cs

    r5474 r5484  
    2525using System.IO;
    2626using System.Linq;
     27using System.Runtime.Serialization;
    2728using System.Text;
    2829
     
    366367    }
    367368    #endregion
     369
     370    [Serializable]
     371    private class DataFormatException : Exception {
     372      private int line;
     373      public int Line {
     374        get { return line; }
     375      }
     376      private string token;
     377      public string Token {
     378        get { return token; }
     379      }
     380      public DataFormatException(string message, string token, int line)
     381        : base(message + "\nToken: " + token + " (line: " + line + ")") {
     382        this.token = token;
     383        this.line = line;
     384      }
     385
     386      public DataFormatException(SerializationInfo info, StreamingContext context) : base(info, context) { }
     387    }
    368388  }
    369389}
Note: See TracChangeset for help on using the changeset viewer.