public class LogAndContinueErrorHandler extends java.lang.Object implements ErrorHandler
To guarantee that all MemcacheServiceException
are directed to
the error handler use a ConsistentErrorHandler
instead such as
ErrorHandlers.getConsistentLogAndContinue(Level)
.
Constructor and Description |
---|
LogAndContinueErrorHandler(java.util.logging.Level level)
Constructor for a given logging level.
|
Modifier and Type | Method and Description |
---|---|
void |
handleDeserializationError(InvalidValueException thrown)
Logs the
thrown error condition, but does not expose it to
application code. |
void |
handleServiceError(MemcacheServiceException thrown)
Logs the
thrown error condition, but does not expose it to
application code. |
public LogAndContinueErrorHandler(java.util.logging.Level level)
level
- the level at which back-end errors should be logged.public void handleDeserializationError(InvalidValueException thrown)
thrown
error condition, but does not expose it to
application code.handleDeserializationError
in interface ErrorHandler
thrown
- the classpath error exceptionpublic void handleServiceError(MemcacheServiceException thrown)
thrown
error condition, but does not expose it to
application code.handleServiceError
in interface ErrorHandler
thrown
- the service error exception