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:
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
-
-
Constructor Summary
Constructors Constructor Description DbAppenderLoggingException(String format, Object... args)Constructs an exception with a message.DbAppenderLoggingException(String message, Throwable cause)Constructs an exception with a message and underlying cause.DbAppenderLoggingException(Throwable cause, String format, Object... args)Constructs an exception with a message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DbAppenderLoggingException
public DbAppenderLoggingException(String format, 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(String message, 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(Throwable cause, String format, 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
-
-