Class ErrorHandlers (2.0.0)

public final class ErrorHandlers

Static utility for getting built-in ErrorHandlers.

Inheritance

java.lang.Object > ErrorHandlers

Static Methods

getConsistentLogAndContinue(Level logLevel)

public static LogAndContinueErrorHandler getConsistentLogAndContinue(Level logLevel)

Returns an instance of ConsistentLogAndContinueErrorHandler that handles all MemcacheServiceException exceptions.

Parameter
Name Description
logLevel Level
Returns
Type Description
LogAndContinueErrorHandler

getDefault()

public static ErrorHandler getDefault()

Returns the default error handler.

Returns
Type Description
ErrorHandler

getLogAndContinue(Level logLevel) (deprecated)

public static LogAndContinueErrorHandler getLogAndContinue(Level logLevel)

Deprecated. Use #getConsistentLogAndContinue(Level) instead

Returns an instance of LogAndContinueErrorHandler. To make sure that all MemcacheServiceException exceptions are handled by the ErrorHandler use #getConsistentLogAndContinue(Level) instead.

Parameter
Name Description
logLevel Level
Returns
Type Description
LogAndContinueErrorHandler

getStrict()

public static StrictErrorHandler getStrict()

Returns an instance of StrictErrorHandler.

Returns
Type Description
StrictErrorHandler