Class 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 LoggingException in 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:
    Original Java code of Google Flogger, Serialized Form
    • Constructor Detail

      • LoggingException

        public LoggingException​(@Nullable String message)
      • LoggingException

        public LoggingException​(@Nullable String message,
                                @Nullable Throwable cause)