Class DbAppenderLoggingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.logging.log4j.LoggingException
-
- org.apache.logging.log4j.core.appender.AppenderLoggingException
-
- org.apache.logging.log4j.core.appender.db.DbAppenderLoggingException
-
- All Implemented Interfaces:
java.io.Serializable
public class DbAppenderLoggingException extends AppenderLoggingException
Wraps a database exception like a JDBC SQLException. Use this class to distinguish exceptions specifically caught from database layers like JDBC.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DbAppenderLoggingException(java.lang.String format, java.lang.Object... args)
Constructs an exception with a message.DbAppenderLoggingException(java.lang.String message, java.lang.Throwable cause)
Constructs an exception with a message and underlying cause.DbAppenderLoggingException(java.lang.Throwable cause, java.lang.String format, java.lang.Object... args)
Constructs an exception with a message.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DbAppenderLoggingException
public DbAppenderLoggingException(java.lang.String format, java.lang.Object... args)
Constructs an exception with a message.- Parameters:
format
- The reason format for the exception, seeString.format(String, Object...)
.args
- The reason arguments for the exception, seeString.format(String, Object...)
.- Since:
- 2.12.1
-
DbAppenderLoggingException
public DbAppenderLoggingException(java.lang.String message, java.lang.Throwable cause)
Constructs an exception with a message and underlying cause.- Parameters:
message
- The reason for the exceptioncause
- The underlying cause of the exception
-
DbAppenderLoggingException
public DbAppenderLoggingException(java.lang.Throwable cause, java.lang.String format, java.lang.Object... args)
Constructs an exception with a message.- Parameters:
cause
- The underlying cause of the exceptionformat
- The reason format for the exception, seeString.format(String, Object...)
.args
- The reason arguments for the exception, seeString.format(String, Object...)
.- Since:
- 2.12.1
-
-