當前位置: 首頁>>代碼示例>>C#>>正文


C# XmlBContext.errorMessage方法代碼示例

本文整理匯總了C#中XmlBooster.XmlBContext.errorMessage方法的典型用法代碼示例。如果您正苦於以下問題:C# XmlBContext.errorMessage方法的具體用法?C# XmlBContext.errorMessage怎麽用?C# XmlBContext.errorMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.errorMessage方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: acceptHistory

 /// <summary>Top level function to parse an History from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static History acceptHistory(XmlBContext ctxt)
 {
     History res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<History");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_History(ctxt, "</History>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:nikiforovandrey,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:HistoricalData.Generated.cs

示例2: acceptSourceTextComment

 /// <summary>Top level function to parse an SourceTextComment from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static SourceTextComment acceptSourceTextComment(XmlBContext ctxt)
 {
     SourceTextComment res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<SourceTextComment");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_SourceTextComment(ctxt, "</SourceTextComment>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:DataDictionary.Generated.cs

示例3: acceptRequirementSetReference

 /// <summary>Top level function to parse an RequirementSetReference from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static RequirementSetReference acceptRequirementSetReference(XmlBContext ctxt)
 {
     RequirementSetReference res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<RequirementSetReference");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_RequirementSetReference(ctxt, "</RequirementSetReference>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:DataDictionary.Generated.cs

示例4: acceptParagraphRevision

 /// <summary>Top level function to parse an ParagraphRevision from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static ParagraphRevision acceptParagraphRevision(XmlBContext ctxt)
 {
     ParagraphRevision res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<ParagraphRevision");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_ParagraphRevision(ctxt, "</ParagraphRevision>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:DataDictionary.Generated.cs

示例5: acceptRuleCheckIdentifier

 /// <summary>Top level function to parse an RuleCheckIdentifier from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static RuleCheckIdentifier acceptRuleCheckIdentifier(XmlBContext ctxt)
 {
     RuleCheckIdentifier res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<RuleCheckIdentifier");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_RuleCheckIdentifier(ctxt, "</RuleCheckIdentifier>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
開發者ID:ERTMSSolutions,項目名稱:ERTMSFormalSpecs,代碼行數:26,代碼來源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.errorMessage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。