|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.logging.log4j.LoggingException
org.apache.logging.log4j.core.appender.AppenderLoggingException
public class AppenderLoggingException
Thrown from an appender when a log event could not be written. Appenders should not thrown an exception if an error
occurs that does not stop the event from being successfully written. Those types of errors should be logged
using the StatusLogger
. Appenders should only throw exceptions when an error
prevents an event from being written. Appenders must throw an exception in this case so that error-handling
features like the FailoverAppender
work properly.
Also note that appenders must provide a way to suppress exceptions when the user desires and abide by
that instruction. See Appender.ignoreExceptions()
, which is the standard
way to do this.
Constructor Summary | |
---|---|
AppenderLoggingException(String message)
Construct an exception with a message. |
|
AppenderLoggingException(String message,
Throwable cause)
Construct an exception with a message and underlying cause. |
|
AppenderLoggingException(Throwable cause)
Construct an exception with an 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 AppenderLoggingException(String message)
message
- The reason for the exceptionpublic AppenderLoggingException(String message, Throwable cause)
message
- The reason for the exceptioncause
- The underlying cause of the exceptionpublic AppenderLoggingException(Throwable cause)
cause
- The underlying cause of the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.