|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.adfnmc.java.sql.SQLException
public class SQLException
An Exception class that is used in conjunction with JDBC operations. It provides information about problems encountered with Database access and other problems related to JDBC
The SQLException class provides the following information:
| Constructor Summary | |
|---|---|
SQLException(java.lang.Class callingClass,
java.lang.String callingMethod)
Creates an SQLException object. |
|
SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason)
Creates an SQLException object. |
|
SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason,
java.lang.String theSQLState)
Creates an SQLException object. |
|
SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason,
java.lang.String theSQLState,
int theErrorCode)
Creates an SQLException object. |
|
SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.Throwable cause,
java.lang.String msg,
java.lang.Object[] params)
|
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Returns the integer error code for this SQLException |
SQLException |
getNextException()
Retrieves the SQLException chained to this SQLException, if any. |
java.lang.String |
getSQLState()
Retrieves the SQLState description string for this SQLException object |
void |
setNextException(SQLException ex)
Adds the SQLException to the end of this SQLException chain. |
| Methods inherited from class java.lang.Throwable |
|---|
getMessage, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLException(java.lang.Class callingClass,
java.lang.String callingMethod)
public SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason)
theReason - the string to use as the Reason string
public SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason,
java.lang.String theSQLState)
theReason - the string to use as the Reason stringtheSQLState - the string to use as the SQLState string
public SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.String theReason,
java.lang.String theSQLState,
int theErrorCode)
theReason - the string to use as the Reason stringtheSQLState - the string to use as the SQLState stringtheErrorCode - the integer value for the error code
public SQLException(java.lang.Class callingClass,
java.lang.String callingMethod,
java.lang.Throwable cause,
java.lang.String msg,
java.lang.Object[] params)
| Method Detail |
|---|
public int getErrorCode()
public SQLException getNextException()
public java.lang.String getSQLState()
public void setNextException(SQLException ex)
ex - the new SQLException to be added to the end of the chain
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||