Handles deserialization errors. This method is called from either of the
get methods, if the retrieved value
cannot be deserialized. This normally indicates an application upgrade
since the cache entry was stored, and should thus be treated as a cache
miss, which is the behavior of LogAndContinueErrorHandler (the
default).
Handles back-end service errors. This method is called from most of the
MemcacheService methods in the event of a service error. This is
also called for MemcacheService#put(Object, Object) when the
combined key and value size is too large.
The handler may throw any RuntimeException, or it may simply
return for "permissive" error handling, which will generally emulate
behavior of a cache miss due to a discarded entry.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eConsistentErrorHandler\u003c/code\u003e is a marker interface that ensures all \u003ccode\u003eMemcacheServiceException\u003c/code\u003e exceptions are handled by \u003ccode\u003eErrorHandler#handleServiceError(MemcacheServiceException)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConsistentErrorHandler\u003c/code\u003e extends the existing \u003ccode\u003eErrorHandler\u003c/code\u003e to specifically handle \u003ccode\u003eMemcacheServiceException\u003c/code\u003e exceptions thrown by methods like \u003ccode\u003eMemcacheService#put(Object, Object)\u003c/code\u003e while maintaining backward compatibility.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ehandleDeserializationError(InvalidValueException ivx)\u003c/code\u003e deals with situations where retrieved values cannot be deserialized, often due to application upgrades, treating it as a cache miss.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ehandleServiceError(MemcacheServiceException ex)\u003c/code\u003e manages back-end service errors, including cases where the combined size of the key and value in \u003ccode\u003eMemcacheService#put(Object, Object)\u003c/code\u003e is too large.\u003c/p\u003e\n"]]],[],null,[]]