Example #1
0
        /// <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);
        }
Example #2
0
 /// <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);
     }
 }
Example #3
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() + ")");
        }
Example #4
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);
        }
Example #5
0
      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();
      }
Example #6
0
 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;
 }
Example #7
0
 public void warning(TransformerException exception)
 {
     StaticError se = new StaticError(exception);
     se.isWarning = true;
     //Console.WriteLine("(Adding warning " + exception.getMessage() + ")");
     errorList.Add(se);
 }