public SaxonException(DynamicError 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(); }
/** * Make a clean copy of this ErrorListener. This is necessary because the * standard error listener is stateful (it remembers how many errors there have been) * * @param hostLanguage the host language (not used by this implementation) * @return a copy of this error listener */ /*public DynamicError StandardErrorListener makeAnother(int hostLanguage) { return DynamicError(); }*/ private void addErrorCode(DynamicError exception) { //if (exception is XPathException) { string errorCode = exception.ErrorCode.ToString(); if (errorCode != null) { errorCodes.Add(errorCode, true); } //} }
public void fatalError(DynamicError exception) { addErrorCode(exception); //super.fatalError(exception); }
public void error(DynamicError exception) { addErrorCode(exception); // base.error; }
public Outcome(DynamicError exception) { this.exception = exception; }