Class ConfigurationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConfigurationException
    extends java.lang.RuntimeException
    This exception is thrown when an error occurs reading from, parsing, using, or initializing the Log4j 2 configuration. It is also thrown if an appender cannot be created based on the configuration provided.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigurationException​(java.lang.String message)
      Constructs an exception with a message.
      ConfigurationException​(java.lang.String message, java.lang.Throwable cause)
      Constructs an exception with a message and underlying cause.
      ConfigurationException​(java.lang.Throwable cause)
      Constructs an exception with a message and 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

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

      • ConfigurationException

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

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

        public ConfigurationException​(java.lang.Throwable cause)
        Constructs an exception with a message and underlying cause.
        Parameters:
        cause - The underlying cause of the exception