Package com.jk.core.exceptions
Class JKDatabaseDownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.jk.core.exceptions.JKException
com.jk.core.exceptions.JKServerDownException
com.jk.core.exceptions.JKDatabaseDownException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionJKDatabaseDownException
(Exception ex, String dbName, String host, int port) This method constructs aJKDatabaseDownException
with a specific exception, host name, and port number while also specifying the name of the database associated with it. -
Method Summary
Methods inherited from class com.jk.core.exceptions.JKServerDownException
getHost, getMessage, getPort, setHost, setPort
Methods inherited from class com.jk.core.exceptions.JKException
isLogged, setLogged
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JKDatabaseDownException
This method constructs aJKDatabaseDownException
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
This method gets the database name that is associated with this exception.- Returns:
- the database name that is associated with this exception.
-