public class LoggingSchemaErrorHandler extends Object implements SchemaErrorHandler
| Constructor and Description |
|---|
LoggingSchemaErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<Throwable> |
getErrors()
Returns list of handled errors.
|
void |
handle(org.slf4j.Logger log,
String message,
Throwable exception)
Handle schema error.
|
protected void |
log(org.slf4j.Logger log,
String message) |
void |
reset()
Resets implementation state.
|
boolean |
wasError()
Returns true if the implementation handled at least one error.
|
public void handle(org.slf4j.Logger log,
String message,
Throwable exception)
SchemaErrorHandlerhandle in interface SchemaErrorHandlerlog - Logger that could be used to record error messages.message - Error message.exception - Exception (if available). Exception may provide more structured description
of the error. But it may not be available for all error states. However, only
those invocations of handle() method that contain an exceptions are considered to
be errors. The implementation may ignore any invocations that do not contain exception.protected void log(org.slf4j.Logger log,
String message)
public boolean wasError()
SchemaErrorHandlerwasError in interface SchemaErrorHandlerpublic List<Throwable> getErrors()
SchemaErrorHandlergetErrors in interface SchemaErrorHandlerpublic void reset()
SchemaErrorHandlerreset in interface SchemaErrorHandlerCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.