public class VergilErrorHandler extends java.lang.Object implements ErrorHandler
| Red (reviewmoderator) |
| Red (eal) |
CANCEL, CONTINUE, RETHROW| Constructor and Description |
|---|
VergilErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
enableErrorSkipping(boolean enable)
Enable or disable skipping of errors.
|
int |
handleError(java.lang.String element,
NamedObj context,
java.lang.Throwable exception)
Handle an error.
|
public void enableErrorSkipping(boolean enable)
This method is intended to be used when an operation may trigger a large number of errors, and the user interface wishes to offer the user the option of ignoring them. This method should be called with a true argument before the operation begins, and then called with a false argument after the operation ends.
enableErrorSkipping in interface ErrorHandlerenable - True to enable skipping, false to disable.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.