|
Adempiere 3.5.2a | |||||||||
| 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
org.adempiere.exceptions.AdempiereException
org.adempiere.exceptions.DBException
public class DBException
This RuntimeException is used to pass SQLException up the chain of calling methods to determine what to do where needed.
| Constructor Summary | |
|---|---|
DBException(Exception e)
Create a new DBException based on a SQLException |
|
DBException(String msg)
Create a new DBException |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
|
SQLException |
getNextException()
|
SQLException |
getSQLException()
|
String |
getSQLState()
|
static boolean |
isChildRecordFoundError(Exception e)
Check if "child record found" exception (aka ORA-02292) |
static boolean |
isInvalidIdentifierError(Exception e)
Check if "invalid identifier" exception (aka ORA-00904) |
static boolean |
isInvalidUserPassError(Exception e)
Check if "invalid username/password" exception (aka ORA-01017) |
static boolean |
isUniqueContraintError(Exception e)
Check if Unique Constraint Exception (aka ORA-00001) |
| Methods inherited from class org.adempiere.exceptions.AdempiereException |
|---|
getCtx, getLocalizedMessage |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DBException(Exception e)
e - Specicy the Exception causepublic DBException(String msg)
msg - Message| Method Detail |
|---|
public SQLException getSQLException()
public int getErrorCode()
SQLException.getErrorCode()public SQLException getNextException()
SQLException.getNextException()public String getSQLState()
SQLException.getSQLState()public static boolean isUniqueContraintError(Exception e)
e - exceptionpublic static boolean isChildRecordFoundError(Exception e)
e - exceptionpublic static boolean isInvalidIdentifierError(Exception e)
e - exceptionpublic static boolean isInvalidUserPassError(Exception e)
e - exception
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||