Class LoggingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.google.common.flogger.backend.LoggingException
-
- All Implemented Interfaces:
Serializable
public class LoggingException extends RuntimeException
Exception thrown when a log statement cannot be emitted correctly. This exception should only be thrown by logger backend implementations which have opted not to handle specific issues.Typically a logger backend would only throw
LoggingExceptionin response to issues in test code or other debugging environments. In production code, the backend should be configured to emit a modified log statement which includes the error information.See also
LoggerBackend.handleError(RuntimeException, LogData).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoggingException(@Nullable String message)LoggingException(@Nullable String message, @Nullable Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-