@FunctionalInterface
public interface ErrorHandler
extends java.util.function.Consumer<java.lang.Throwable>
Modifier and Type | Method and Description |
---|---|
static ErrorHandler |
logError(com.google.common.flogger.FluentLogger logger,
java.lang.String messageFormat,
java.lang.Class<? extends com.google.protobuf.Message> type)
Obtains the handler which logs the fact of the error using
the severe level of the passed logger.
|
static ErrorHandler logError(com.google.common.flogger.FluentLogger logger, java.lang.String messageFormat, java.lang.Class<? extends com.google.protobuf.Message> type)
logger
- the instance of the logger to use for reporting the errormessageFormat
- the formatting message where the sole parameter is the type of
the message which caused the errortype
- the type of messages delivered to the consumers