com.google.appengine.api.memcache
Class LogAndContinueErrorHandler
- java.lang.Object
-
- com.google.appengine.api.memcache.LogAndContinueErrorHandler
-
- All Implemented Interfaces:
- ErrorHandler
- Direct Known Subclasses:
- ConsistentLogAndContinueErrorHandler
public class LogAndContinueErrorHandler extends java.lang.Object 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 aConsistentErrorHandler
instead such asErrorHandlers.getConsistentLogAndContinue(Level)
.
-
-
Constructor Summary
Constructors Constructor and Description LogAndContinueErrorHandler(java.util.logging.Level level)
Constructor for a given logging level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
handleDeserializationError(InvalidValueException thrown)
Logs thethrown
error condition, but does not expose it to application code.void
handleServiceError(MemcacheServiceException thrown)
Logs thethrown
error condition, but does not expose it to application code.
-
-
-
Constructor Detail
-
LogAndContinueErrorHandler
public LogAndContinueErrorHandler(java.util.logging.Level level)
Constructor for a given logging level.- Parameters:
level
- the level at which back-end errors should be logged.
-
-
Method Detail
-
handleDeserializationError
public void handleDeserializationError(InvalidValueException thrown)
Logs thethrown
error condition, but does not expose it to application code.- Specified by:
handleDeserializationError
in interfaceErrorHandler
- Parameters:
thrown
- the classpath error exception
-
handleServiceError
public void handleServiceError(MemcacheServiceException thrown)
Logs thethrown
error condition, but does not expose it to application code.- Specified by:
handleServiceError
in interfaceErrorHandler
- Parameters:
thrown
- the service error exception
-
-