Package org.jboss.util

Examples of org.jboss.util.NestedException


         for (;i < ops.length; ++i)
            ops[i].perform();
      }
      catch (Exception e)
      {
         throw new NestedException(test + " operation " + i, e);
      }
      finally
      {
         log.info("Finished test " + test);
         try
View Full Code Here


      // Unwrap a nested exception if possible.  There is no
      // point in the extra wrapping, and the EJB spec should have
      // just used javax.transaction exceptions
      if (e instanceof NestedException)
         {
            NestedException rollback = (NestedException) e;
            if(rollback.getCause() instanceof Exception)
            {
               e = (Exception) rollback.getCause();
            }
         }
         if (type == InvocationType.LOCAL
             || type == InvocationType.LOCALHOME)
         {
View Full Code Here

/*     */   protected void throwJBossException(Exception e, InvocationType type)
/*     */     throws TransactionRolledbackException
/*     */   {
/* 558 */     if ((e instanceof NestedException))
/*     */     {
/* 560 */       NestedException rollback = (NestedException)e;
/* 561 */       if ((rollback.getCause() instanceof Exception))
/*     */       {
/* 563 */         e = (Exception)rollback.getCause();
/*     */       }
/*     */     }
/* 566 */     if ((type == InvocationType.LOCAL) || (type == InvocationType.LOCALHOME))
/*     */     {
/* 569 */       throw new JBossTransactionRolledbackLocalException(e);
View Full Code Here

TOP

Related Classes of org.jboss.util.NestedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.