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

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

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

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