|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.DefaultErrorHandler
Default XSL error handler that logs errors and warnings to a
PrintWriter (System.err unless specified
otherwise).
| Constructor Summary | |
DefaultErrorHandler()
Constructs a default error handler that logs errors and warnings to System.err. |
|
DefaultErrorHandler(PrintWriter output)
Constructs a default error handler that logs errors and warnings to the specified PrintWriter. |
|
| 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 |
setLogErrors(boolean logErrors)
Sets whether errors are to be logged. |
void |
setLogWarnings(boolean logWarnings)
Sets whether warnings are to be logged. |
void |
warning(String message)
Receive notification of an XSL warning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultErrorHandler()
System.err.
public DefaultErrorHandler(PrintWriter output)
PrintWriter.
output - the PrintWriter to which error messages are
logged| Method Detail |
public int getErrorCount()
getErrorCount in interface ErrorHandlerpublic int getWarningCount()
getWarningCount in interface ErrorHandlerpublic void resetCounts()
resetCounts in interface ErrorHandlerpublic void setLogErrors(boolean logErrors)
logErrors - true if errors are to be loggedpublic void setLogWarnings(boolean logWarnings)
logWarnings - true if warnings are to be logged
public void error(String message)
throws XSLException
error in interface ErrorHandlermessage - the error message
XSLException - if the error is fatal (never thrown by this
implementation)public void warning(String message)
warning in interface ErrorHandlermessage - the warning message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||