|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
int getErrorCount()
int getWarningCount()
void resetCounts()
void error(String message) throws XSLException
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.
message
- the error message
XSLException
- if the error is fatalvoid warning(String message)
XSLException
since warnings are never fatal.
message
- the warning message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |