org.apache.logging.log4j
Class LoggingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.logging.log4j.LoggingException
All Implemented Interfaces:
Serializable

public class LoggingException
extends RuntimeException

Exception thrown when a exception 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
LoggingException(Exception ex)
          Constructs a Logging Exception with a chained Exception and no message.
LoggingException(String msg)
          Constructs a LoggingException with a message.
LoggingException(String msg, Exception ex)
          Constructs a LoggingException with a message and a chained Exception.
 
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

LoggingException

public LoggingException(String msg)
Constructs a LoggingException with a message.

Parameters:
msg - The message.

LoggingException

public LoggingException(String msg,
                        Exception ex)
Constructs a LoggingException with a message and a chained Exception.

Parameters:
msg - The message.
ex - The chained Exception.

LoggingException

public LoggingException(Exception ex)
Constructs a Logging Exception with a chained Exception and no message.

Parameters:
ex - The chained Exception.


Copyright © 1999-2013 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.