public class RecorderErrorHandler extends java.lang.Object implements ErrorHandler
RecorderListenerCANCEL, CONTINUE, RETHROW| Constructor and Description |
|---|
RecorderErrorHandler()
Create an error handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableErrorSkipping(boolean enable)
Enable or disable skipping of errors.
|
java.lang.String |
getMessages()
Get the messages recorded so far.
|
int |
handleError(java.lang.String element,
NamedObj context,
java.lang.Throwable exception)
Handle an error by printing a description of the error to
the stream specified in the constructor.
|
void |
reset()
Clear the buffer.
|
public RecorderErrorHandler()
public void enableErrorSkipping(boolean enable)
enableErrorSkipping in interface ErrorHandlerenable - True to enable skipping, false to disable.public java.lang.String getMessages()
public int handleError(java.lang.String element, NamedObj context, java.lang.Throwable exception)
handleError in interface ErrorHandlerelement - The XML element that triggered the error.context - The container object for the element.exception - The exception that was thrown.public void reset()