public class DBException
extends com.wm.app.b2b.server.ServerException
DBConnection
,
JDBCConnection
Constructor and Description |
---|
DBException(java.sql.SQLException e)
Constructs a DBException with the specified SQLException.
|
DBException(java.lang.String msg)
Constructs a DBException with the specified message.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the SQLException error code from this DBException.
|
java.lang.String |
getSQLState()
Returns the SQLException state from this DBException.
|
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.public java.lang.String getSQLState()
public int getErrorCode()