question: 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 ) ; }
target:  Convert an InvocationTarget exception to a database exception.