Class ConfigurationException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.logging.log4j.core.config.ConfigurationException
All Implemented Interfaces:

public class ConfigurationException
extends 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
ConfigurationException(String message)
          Construct an exception with a message.
ConfigurationException(String message, Throwable cause)
          Construct an exception with a message and underlying cause.
Method Summary
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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


public ConfigurationException(String message)
Construct an exception with a message.

message - The reason for the exception


public ConfigurationException(String message,
                              Throwable cause)
Construct an exception with a message and underlying cause.

message - The reason for the exception
cause - The underlying cause of the exception

Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.