|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opengts.dbtools.DBException
public class DBException
DBException is the general exception thrown for various encountered
SQL database errors.
| Constructor Summary | |
|---|---|
DBException(java.lang.String msg)
Constructor |
|
DBException(java.lang.String msg,
java.lang.Throwable cause)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getCauseMessage()
Gets the exception message, including the cause |
java.lang.String |
getMessage()
Gets the exception message |
boolean |
isCauseCommunicationsException()
Returns true if the cause of this exception is a MySQL CommunicationsException IE. |
static boolean |
isCommunicationsException(java.lang.Throwable th)
Returns true if the specified exception is a MySQL CommunicationsException IE. |
boolean |
isOutOfMemoryError()
Returns true if the cause of this exception is an java.lang.OutOfMemoryError |
boolean |
isSQLException()
Returns true if the cause of this exception is an SQLException |
void |
printException()
Prints a description of this exception to the logging output |
java.lang.String |
toString()
Returns a String representation of this exception |
| 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 DBException(java.lang.String msg)
msg - The message associated with this exception
public DBException(java.lang.String msg,
java.lang.Throwable cause)
msg - The message associated with this exceptioncause - The reason for this exception| Method Detail |
|---|
public boolean isSQLException()
public boolean isCauseCommunicationsException()
public static boolean isCommunicationsException(java.lang.Throwable th)
th - The Exception/Throwable to test
public boolean isOutOfMemoryError()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getCauseMessage()
public void printException()
public java.lang.String toString()
toString in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||