Class LogAndContinueErrorHandler (2.0.0)

public class LogAndContinueErrorHandler implements ErrorHandler

The default error handler, which will cause most service errors to behave as though there were a cache miss, not an error.

To guarantee that all MemcacheServiceException are directed to the error handler use a ConsistentErrorHandler instead such as ErrorHandlers#getConsistentLogAndContinue(Level).

Inheritance

java.lang.Object > LogAndContinueErrorHandler

Implements

ErrorHandler

Constructors

LogAndContinueErrorHandler(Level level)

public LogAndContinueErrorHandler(Level level)

Constructor for a given logging level.

Parameter
Name Description
level Level

the level at which back-end errors should be logged.

Methods

handleDeserializationError(InvalidValueException thrown)

public void handleDeserializationError(InvalidValueException thrown)

Logs the thrown error condition, but does not expose it to application code.

Parameter
Name Description
thrown InvalidValueException

the classpath error exception

handleServiceError(MemcacheServiceException thrown)

public void handleServiceError(MemcacheServiceException thrown)

Logs the thrown error condition, but does not expose it to application code.

Parameter
Name Description
thrown MemcacheServiceException

the service error exception