Beispiel #1
0
        /// <summary>
        /// Report a fatal exception thrown.
        /// </summary>
        /// <param name="error">TransformerException.</param>
        public void fatalError(TransformerException error)
        {
            StaticError se = new StaticError(error);

            se.isWarning = false;
            errorList.Add(se);
            //Console.WriteLine("(Adding fatal error " + error.getMessage() + ")");
        }
Beispiel #2
0
        /// <summary>
        /// Warning the specified exception.
        /// </summary>
        /// <param name="exception">TransformerException.</param>
        public void warning(TransformerException exception)
        {
            StaticError se = new StaticError(exception);

            se.isWarning = true;
            //Console.WriteLine("(Adding warning " + exception.getMessage() + ")");
            errorList.Add(se);
        }
Beispiel #3
0
        // internal constructor: Create a new DynamicError, wrapping a Saxon XPathException

        internal DynamicError(TransformerException err)
        {
            if (err is XPathException)
            {
                this.exception = (XPathException)err;
            }
            else
            {
                this.exception = XPathException.makeXPathException(err);
            }
        }
Beispiel #4
0
        /// <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);
            }
        }
 public void warning(TransformerException te)
 {
     this.Warnings.Add(te);
 }
 public void fatalError(TransformerException te)
 {
     this.FatalErrors.Add(te);
 }
 public void error(TransformerException te)
 {
     this.Errors.Add(te);
 }
 public XsltCompilerException(TransformerException exception)
 {
     this.TransformerException = exception;
 }