/// <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 fatalError(TransformerException error) { StaticError se = new StaticError(error); se.isWarning = false; errorList.Add(se); //Console.WriteLine("(Adding fatal error " + error.getMessage() + ")"); throw error; }
public void warning(TransformerException exception) { StaticError se = new StaticError(exception); se.isWarning = true; //Console.WriteLine("(Adding warning " + exception.getMessage() + ")"); errorList.Add(se); }
/// <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); } }