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.
|
void |
reset()
Resets implementation state.
|
boolean |
wasError()
Returns true if the implementation handled at least one error.
|
public LoggingSchemaErrorHandler()
public void handle(org.slf4j.Logger log, String message, Throwable exception)
SchemaErrorHandler
handle
in interface SchemaErrorHandler
log
- 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.public boolean wasError()
SchemaErrorHandler
wasError
in interface SchemaErrorHandler
public List<Throwable> getErrors()
SchemaErrorHandler
getErrors
in interface SchemaErrorHandler
public void reset()
SchemaErrorHandler
reset
in interface SchemaErrorHandler
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.