com.novell.xsl
Interface ErrorHandler

All Known Implementing Classes:
DefaultErrorHandler, XSLTHandler

public interface ErrorHandler

An interface for reporting XSL errors and warnings.

The error handling philosophy is as follows:


Method Summary
 void error(String message)
          Receive notification of an XSL error.
 int getErrorCount()
          Returns the number of errors that have occurred so far.
 int getWarningCount()
          Returns the number of warnings that have occurred so far.
 void resetCounts()
          Resets the number of errors and warnings to zero.
 void warning(String message)
          Receive notification of an XSL warning.
 

Method Detail

getErrorCount

public int getErrorCount()
Returns the number of errors that have occurred so far.

Returns:
the number of errors

getWarningCount

public int getWarningCount()
Returns the number of warnings that have occurred so far.

Returns:
the number of warnings

resetCounts

public void resetCounts()
Resets the number of errors and warnings to zero.


error

public void error(String message)
           throws XSLException
Receive notification of an XSL error.

If this method returns normally, the XSL processor will do its best to recover and continue processing. The result document may be incomplete or even empty.

If this method throws an exception, the error is fatal and the XSL processor will abort processing and propagate the exception.

Parameters:
message - the error message
Throws:
XSLException - if the error is fatal

warning

public void warning(String message)
Receive notification of an XSL warning. Note that this method does not throw an XSLException since warnings are never fatal.

Parameters:
message - the warning message