|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.finalist.util.genelv.exceptions.ExceptionUtil
Util class for exception handling.
Constructor Summary | |
ExceptionUtil()
|
Method Summary | |
static java.lang.String |
determineErrorCode(java.lang.Throwable t)
Determines the error key for the given Throwable |
static java.lang.String |
determineErrorCodeDb(java.lang.Throwable t)
Determine the error code using the genelv table in the database. |
static java.lang.String |
determineErrorCodeType(java.lang.Throwable t)
Determine the error code on the basis of the type of the exception |
static boolean |
exportErrorCodesToProject()
Export error codes from the database to be connected using com.finalist.util.db.GenElvConnectionManager
to the database to connected using com.finalist.util.db.ConnectionManager .
|
static java.lang.String |
getStackTrace(java.lang.Throwable t)
Return a string version of the stack trace if passed throwable is not null. |
static boolean |
importErrorCodesFromProject()
Import error codes from the database to be connected using com.finalist.util.db.ConnectionManager
to the database to connected using com.finalist.util.db.GenElvConnectionManager .
|
static void |
main(java.lang.String[] args)
test main |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExceptionUtil()
Method Detail |
public static java.lang.String getStackTrace(java.lang.Throwable t)
public static java.lang.String determineErrorCodeDb(java.lang.Throwable t) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String determineErrorCodeType(java.lang.Throwable t)
public static java.lang.String determineErrorCode(java.lang.Throwable t)
Throwable
public static boolean exportErrorCodesToProject()
com.finalist.util.db.GenElvConnectionManager
to the database to connected using com.finalist.util.db.ConnectionManager
.
Returns true
if all was ok, other false
public static boolean importErrorCodesFromProject()
com.finalist.util.db.ConnectionManager
to the database to connected using com.finalist.util.db.GenElvConnectionManager
.
Returns true if all was ok, otherwise false
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |