Class LoggingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LoggingException
    extends java.lang.RuntimeException
    Exception thrown when an error occurs while logging. In most cases exceptions will be handled within Log4j but certain Appenders may be configured to allow exceptions to propagate to the application. This is a RuntimeException so that the exception may be thrown in those cases without requiring all Logger methods be contained with try/catch blocks.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingException​(java.lang.String message)
      Construct an exception with a message.
      LoggingException​(java.lang.String message, java.lang.Throwable cause)
      Construct an exception with a message and underlying cause.
      LoggingException​(java.lang.Throwable cause)
      Construct an exception with an underlying cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LoggingException

        public LoggingException​(java.lang.String message)
        Construct an exception with a message.
        Parameters:
        message - The reason for the exception
      • LoggingException

        public LoggingException​(java.lang.String message,
                                java.lang.Throwable cause)
        Construct an exception with a message and underlying cause.
        Parameters:
        message - The reason for the exception
        cause - The underlying cause of the exception
      • LoggingException

        public LoggingException​(java.lang.Throwable cause)
        Construct an exception with an underlying cause.
        Parameters:
        cause - The underlying cause of the exception