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.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
AppenderLoggingException(java.lang.String message)
Constructs an exception with a message.
|
AppenderLoggingException(java.lang.String format,
java.lang.Object... args)
Constructs an exception with a message.
|
AppenderLoggingException(java.lang.String message,
java.lang.Throwable cause)
Constructs an exception with a message and underlying cause.
|
AppenderLoggingException(java.lang.Throwable cause)
Constructs an exception with an underlying cause.
|
AppenderLoggingException(java.lang.Throwable cause,
java.lang.String format,
java.lang.Object... args)
Constructs an exception with a message.
|
private static final long serialVersionUID
public AppenderLoggingException(java.lang.String message)
message
- The reason for the exceptionpublic AppenderLoggingException(java.lang.String format, java.lang.Object... args)
format
- The reason format for the exception, see String.format(String, Object...)
.args
- The reason arguments for the exception, see String.format(String, Object...)
.public AppenderLoggingException(java.lang.String message, java.lang.Throwable cause)
message
- The reason for the exceptioncause
- The underlying cause of the exceptionpublic AppenderLoggingException(java.lang.Throwable cause)
cause
- The underlying cause of the exceptionpublic AppenderLoggingException(java.lang.Throwable cause, java.lang.String format, java.lang.Object... args)
cause
- The underlying cause of the exceptionformat
- The reason format for the exception, see String.format(String, Object...)
.args
- The reason arguments for the exception, see String.format(String, Object...)
.