/// <summary> /// /// </summary> /// <param name="failure">net.sf.saxon.type.ValidationFailure.</param> public void reportInvalidity(net.sf.saxon.lib.Invalidity failure) { StaticError se = new StaticError(((net.sf.saxon.type.ValidationFailure)failure).makeException()); errorList.Add(se); //invalidityHandler.reportInvalidity (se); }
/// <summary> /// Receive notification of a validity error. /// </summary> /// <param name="i">Information about the nature of the invalidity</param> public void reportInvalidity(Invalidity i) { if (i is JValidationFailure) { StaticError error = new StaticError(((JValidationFailure)i).makeException()); inHandler.reportInvalidity(error); } }
/// <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() + ")"); }
/// <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); }
public SaxonException(StaticError 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(); }
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); }