コード例 #1
0
ファイル: SAXTest.cs プロジェクト: rasmusjp/sax.net
 public void FatalError(SAXParseException e) {
   Console.WriteLine("  EVENT: fatal error " + e.Message + ' ' + e.SystemId + ' ' + e.LineNumber + ' '
                     + e.ColumnNumber);
 }
コード例 #2
0
ファイル: SAXDriver.cs プロジェクト: rasmusjp/aelfred.net
    // AElfred only has fatal errors
    public virtual void Error(string message, string url, int line, int column) {
      var fatal = new SAXParseException(message, null, url, line, column);
      _errorHandler.FatalError(fatal);

      // Even if the application can continue ... we can't!
      throw fatal;
    }
コード例 #3
0
ファイル: SAXTest.cs プロジェクト: rasmusjp/sax.net
 public void Warning(SAXParseException e) {
   Console.WriteLine("  EVENT: warning " + e.Message + ' ' + e.SystemId + ' ' + e.LineNumber + ' ' + e.ColumnNumber);
 }