com.ibm.commerce.payments.configurator
Class DatabaseConnectionFailedException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.commerce.payments.configurator.ConfigurationException
|
+--com.ibm.commerce.payments.configurator.DatabaseConnectionFailedException
- All Implemented Interfaces:
- java.io.Serializable
- public class DatabaseConnectionFailedException
- extends ConfigurationException
Thrown whenever a database connection can not be created.
- See Also:
- Serialized Form
Method Summary |
int |
getError()
Gets the error code for the sql exception |
void |
setSQLState(java.sql.SQLException ex)
Sets the error code for the sql exception |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DatabaseConnectionFailedException
public DatabaseConnectionFailedException()
- Default constructor
DatabaseConnectionFailedException
public DatabaseConnectionFailedException(java.sql.SQLException ex)
- Constructor that includes an SQL exception
- Parameters:
ex
- sql exception
DatabaseConnectionFailedException
public DatabaseConnectionFailedException(java.lang.ClassNotFoundException ex)
- Constructor that includes a ClassNotFound exception
- Parameters:
ex
- a ClassNotFound exception
setSQLState
public void setSQLState(java.sql.SQLException ex)
- Sets the error code for the sql exception
- Parameters:
ex
- sql exception
getError
public int getError()
- Gets the error code for the sql exception
- Returns:
- errorcode