com.finalist.util.genelv.exceptions
Class ExceptionUtil

java.lang.Object
  extended bycom.finalist.util.genelv.exceptions.ExceptionUtil

public class ExceptionUtil
extends java.lang.Object

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

ExceptionUtil

public ExceptionUtil()
Method Detail

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable t)
Return a string version of the stack trace if passed throwable is not null.


determineErrorCodeDb

public static java.lang.String determineErrorCodeDb(java.lang.Throwable t)
                                             throws java.sql.SQLException
Determine the error code using the genelv table in the database.

Throws:
java.sql.SQLException

determineErrorCodeType

public static java.lang.String determineErrorCodeType(java.lang.Throwable t)
Determine the error code on the basis of the type of the exception


determineErrorCode

public static java.lang.String determineErrorCode(java.lang.Throwable t)
Determines the error key for the given Throwable


exportErrorCodesToProject

public 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. Returns true if all was ok, other false


importErrorCodesFromProject

public 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. Returns true if all was ok, otherwise false


main

public static void main(java.lang.String[] args)
test main



Copyright © 2003-2004 SourceForge. All Rights Reserved.