Class JKDatabaseDownException

All Implemented Interfaces:
Serializable

public class JKDatabaseDownException extends JKServerDownException
This class represents exception thrown to indicate that the database is unavailable or encounters connectivity issues

This exception is a subclass of JKServerDownException.

This class should be used to represent situations where the application cannot establish a connection to the database or the database is down.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Constructor Details

    • JKDatabaseDownException

      public JKDatabaseDownException(Exception ex, String dbName, String host, int port)
      This method constructs a JKDatabaseDownException with a specific exception, host name, and port number while also specifying the name of the database associated with it.
      Parameters:
      ex - Specifies the exception associated with this object.
      dbName - Specifies the database name.
      host - Specifies the host name where this exception occurred on.
      port - Specifies the port number where this exception occurred on.
  • Method Details

    • getDbName

      public String getDbName()
      This method gets the database name that is associated with this exception.
      Returns:
      the database name that is associated with this exception.