/// <summary>
        /// Create a new StaticError, wrapping a Saxon XPathException
        /// </summary>

        internal StaticError(TransformerException err) {
            if (err is XPathException) {
                this.exception = (XPathException)err;
            } else {
                this.exception = JStaticError.makeStaticError(err);
            }
        }
Example #2
0
 public void fatalError(TransformerException error)
 {
     StaticError se = new StaticError(error);
     se.isWarning = false;
     errorList.Add(se);
     //Console.WriteLine("(Adding fatal error " + error.getMessage() + ")");
     throw error;
 }
Example #3
0
 public void warning(TransformerException exception)
 {
     StaticError se = new StaticError(exception);
     se.isWarning = true;
     //Console.WriteLine("(Adding warning " + exception.getMessage() + ")");
     errorList.Add(se);
 }
Example #4
0
        /// <summary>
        /// Create a new DynamicError, wrapping a Saxon XPathException
        /// </summary>
        /// <param name="err">The exception to be wrapped</param>

        internal DynamicError(TransformerException err)
        {
            if (err is XPathException)
            {
                this.exception = (XPathException)err;
            }
            else
            {
                this.exception = XPathException.makeXPathException(err);
            }
        }