|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.b2b.server.ServerException
com.wm.app.b2b.server.DBException
public class DBException
This class is returned by DBConnection and its subclasses when a database operation fails.
DBConnection
,
JDBCConnection
Constructor Summary | |
---|---|
DBException(java.sql.SQLException e)
Constructs a DBException with the specified SQLException. |
|
DBException(java.lang.String msg)
Constructs a DBException with the specified message. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the SQLException error code from this DBException. |
java.lang.String |
getSQLState()
Returns the SQLException state from this DBException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBException(java.lang.String msg)
msg
- A String specifying the detailed error message for this DBException.public DBException(java.sql.SQLException e)
e
- The SQLException that is to be captured by this DBException.Method Detail |
---|
public java.lang.String getSQLState()
public int getErrorCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |