public static DbException convertInvocation(InvocationTargetException te,String message){
  Throwable t=te.getTargetException();
  if (t instanceof SQLException || t instanceof DbException) {
    return convert(t);
  }
  message=message == null ? t.getMessage() : message + ": " + t.getMessage();
  return get(ErrorCode.EXCEPTION_IN_FUNCTION_1,t,message);
}

public static DbException convertInvocation ( InvocationTargetException te , String message ) { Throwable t = te . getTargetException ( ) ; if ( t instanceof SQLException || t instanceof DbException ) { return convert ( t ) ; } message = message == null ? t . getMessage ( ) : message + ": " + t . getMessage ( ) ; return get ( ErrorCode . EXCEPTION_IN_FUNCTION_1 , t , message ) ; }
convert an invocationtarget exception to a database exception .
