public class LogAndContinueErrorHandler implements ErrorHandlerThe 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).
Implements
ErrorHandlerConstructors
LogAndContinueErrorHandler(Level level)
public LogAndContinueErrorHandler(Level level)Constructor for a given logging level.
| Parameter | |
|---|---|
| Name | Description |
level |
Levelthe 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 |
InvalidValueExceptionthe 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 |
MemcacheServiceExceptionthe service error exception |