Class LogAndContinueErrorHandler

java.lang.Object
com.google.appengine.api.memcache.LogAndContinueErrorHandler
All Implemented Interfaces:
ErrorHandler
Direct Known Subclasses:
ConsistentLogAndContinueErrorHandler

public class LogAndContinueErrorHandler extends 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 a ConsistentErrorHandler instead such as ErrorHandlers.getConsistentLogAndContinue(Level).

  • Constructor Details

    • LogAndContinueErrorHandler

      public LogAndContinueErrorHandler(Level level)
      Constructor for a given logging level.
      Parameters:
      level - the level at which back-end errors should be logged.
  • Method Details

    • handleDeserializationError

      public void handleDeserializationError(InvalidValueException thrown)
      Logs the thrown error condition, but does not expose it to application code.
      Specified by:
      handleDeserializationError in interface ErrorHandler
      Parameters:
      thrown - the classpath error exception
    • handleServiceError

      public void handleServiceError(MemcacheServiceException thrown)
      Logs the thrown error condition, but does not expose it to application code.
      Specified by:
      handleServiceError in interface ErrorHandler
      Parameters:
      thrown - the service error exception