コード例 #1
0
 private Node ReadElement()
 {
     try
     {
         return(reader.ReadElement());
     }
     catch (System.Exception e)
     {
         System.Text.StringBuilder msgBuffer = new System.Text.StringBuilder();
         msgBuffer.Append("Unexpected Exception occurred while reading ");
         msgBuffer.Append(resourceLocn);
         msgBuffer.Append(", in nextHTMLNode");
         reader.AppendLineDetails(msgBuffer);
         ParserException ex = new ParserException(msgBuffer.ToString(), e);
         feedback.Error(msgBuffer.ToString(), ex);
         throw ex;
     }
 }
コード例 #2
0
 public static void error(string message, ParserException e)
 {
     callback.Error(message, e);
 }