Serializable
public class AppenderLoggingException extends LoggingException
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 | Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 exceptionCopyright © 1999-2018. 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.