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
NameDescription
logLevelLevel
Returns
TypeDescription
LogAndContinueErrorHandler

getDefault()

public static ErrorHandler getDefault()

Returns the default error handler.

Returns
TypeDescription
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
NameDescription
logLevelLevel
Returns
TypeDescription
LogAndContinueErrorHandler

getStrict()

public static StrictErrorHandler getStrict()

Returns an instance of StrictErrorHandler.

Returns
TypeDescription
StrictErrorHandler