Code example for InvocationTargetException

0
    public void execute(JdbcWork work) throws InvocationTargetException
    { 
       WorkAdapter w = new WorkAdapter(work);
       session_.doWork(w); 
       if (w.getEx()!=null) {
           throw new InvocationTargetException(w.getEx());
       } 
    } 
 
    private Session session_;
}