|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
planetj.exception.CMException
planetj.dataengine.exception.DataEngineException
planetj.dataengine.exception.DESQLException
This exception class is used to wrapper SQLExceptions.
Field Summary |
Fields inherited from class planetj.exception.CMException |
DISPLAY_ALL, DISPLAY_CLASS_INFO, DISPLAY_DETAILED_MESSAGE, DISPLAY_MESSAGE, DISPLAY_ORIGINAL_EXCEPTION, FATAL, INFO, propertyChange, SHOW_EXCEPTION, WARNING |
Constructor Summary | |
DESQLException(java.sql.SQLException sqle)
Creates and initializes a DESQLException object. |
|
DESQLException(java.sql.SQLException sqle,
java.lang.String sql)
Creates and initializes a DESQLException object. |
Method Summary | |
int |
getErrorCode()
Gets the vendor specific error code of the SQLException contained within this DESQLException object. |
java.lang.String |
getSQL()
Gets the original SQL String run that threw a SQLException . |
java.sql.SQLException |
getSQLException()
Gets the SQLException wrapped inside this DESQLException . |
java.lang.String |
getSQLState()
Gets the SQLState of the SQLException contained within this DESQLException object. |
java.lang.String |
getSQLStateClassCode()
Gets the SQLState's class code from the SQLException wrapped inside this DESQLException . |
void |
setSQL(java.lang.String sql)
Sets the original SQL String run that threw a SQLException . |
java.lang.String |
toString()
Gets this DESQLException as a String. |
Methods inherited from class planetj.exception.CMException |
addPropertyChangeListener, firePropertyChange, getCMMessage, getDetailedMessage, getDisplayString, getDisplayStringInternal, getDisplayType, getMessage, getNextException, getOriginalException, getPropertyChange, getType, removePropertyChangeListener, setDetailedMessage, setDisplayType, setMessage, setNextException, setOriginalException, setType |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DESQLException(java.sql.SQLException sqle)
DESQLException
object.
sqle
- SQLExceptionpublic DESQLException(java.sql.SQLException sqle, java.lang.String sql)
DESQLException
object.
sqle
- SQLException
from running a SQL Stringsql
- SQL String run that threw the given SQLException
Method Detail |
public int getErrorCode()
SQLException
contained within this DESQLException
object.
SQLException
public java.lang.String getSQL()
SQLException
.
SQLException
public java.sql.SQLException getSQLException()
SQLException
wrapped inside this DESQLException
.
SQLException
contained within this object.public java.lang.String getSQLState()
SQLException
contained within this DESQLException
object.
SQLException
public java.lang.String getSQLStateClassCode()
SQLException
wrapped inside this DESQLException
. The SQLState's class code is the
first two characters in the String. e.g. if the SQLState is "23000", then the class code would be "23".
SQLException
public void setSQL(java.lang.String sql)
SQLException
.
sql
- original SQL String run that threw a SQLException
public java.lang.String toString()
DESQLException
as a String. Included in the String will be the exception's message, detailed message, SQL String run when the
wrapped SQLException
was thrown, and original exception.
toString
in class CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |