|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
List of error code that the application can manage. Alse defined the method used by the actions to signal to the error handler about the exception catched Last modified $Date: 2004/05/18 10:50:12 $
Field Summary | |
---|---|
static int |
CHECK_CONSTRAINT_FAILED
Some check constraint failed |
static int |
NO_DATA_FOUND
Load operation fail (Hibernate/Toplink) |
static int |
OK
No, errors |
static int |
PARENT_KEY_NOT_FOUND
Parent key not found on some columns |
static int |
RESTRICT_UPDATE_DELETE
Cannot delete or update due to restrict delete/update constraint failed |
static int |
UNIQUE_CONSTRAINT_FAILED
Primary key or Unique key constraint failed |
static int |
UNKNOWN_ERROR_CODE
We don't known this error code |
Method Summary | |
---|---|
void |
handleError(org.j2ee.dao.DAOAction a,
org.j2ee.dao.DAOActionProcessor p,
java.lang.Throwable e,
int internalErrorCode)
|
Field Detail |
public static final int OK
public static final int NO_DATA_FOUND
public static final int PARENT_KEY_NOT_FOUND
public static final int CHECK_CONSTRAINT_FAILED
public static final int UNIQUE_CONSTRAINT_FAILED
public static final int RESTRICT_UPDATE_DELETE
public static final int UNKNOWN_ERROR_CODE
Method Detail |
public void handleError(org.j2ee.dao.DAOAction a, org.j2ee.dao.DAOActionProcessor p, java.lang.Throwable e, int internalErrorCode) throws DAOException
a
- DAOAction which throw the exceptionp
- DAOActionProcessor used the above actione
- DAOException generated by the actioninternalErrorCode
- returned by the error handler
DAOException
- a new exception generated by the concrete error handler
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |