Esempio n. 1
0
      public SaxonException(DynamicError error)
         : base(error.Message, error) {

         this.LineNumber = error.LineNumber;

         if (!String.IsNullOrEmpty(error.ModuleUri))
            this.ModuleUri = new Uri(error.ModuleUri);

         if (error.ErrorCode != null)
            this.ErrorCode = error.ErrorCode.ToXmlQualifiedName();
      }
Esempio n. 2
0
                /**
                 * Make a clean copy of this ErrorListener. This is necessary because the
                 * standard error listener is stateful (it remembers how many errors there have been)
                 *
                 * @param hostLanguage the host language (not used by this implementation)
                 * @return a copy of this error listener
                 */

                /*public DynamicError StandardErrorListener makeAnother(int hostLanguage)
                {
                    return DynamicError();
                }*/

                private void addErrorCode(DynamicError exception)
                {
                    //if (exception is XPathException) {
                    string errorCode = exception.ErrorCode.ToString();
                    if (errorCode != null)
                    {
                        errorCodes.Add(errorCode, true);
                    }
                    //}
                }
Esempio n. 3
0
 public void fatalError(DynamicError exception)
 {
     addErrorCode(exception);
     //super.fatalError(exception);
 }
Esempio n. 4
0
                public void error(DynamicError exception)
                {
                    addErrorCode(exception);
                   // base.error;

                }
Esempio n. 5
0
 public Outcome(DynamicError exception)
 {
     this.exception = exception;
 }