Class 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.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • 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, see String.format(String, Object...).
        args - The reason arguments for the exception, see String.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 exception
        cause - 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 exception
        format - The reason format for the exception, see String.format(String, Object...).
        args - The reason arguments for the exception, see String.format(String, Object...).
        Since:
        2.12.1