Package javax.transaction

Examples of javax.transaction.SystemException.initCause()


            IllegalStateException ise = new IllegalStateException();
            ise.initCause(ex);
            throw ise;
        } catch (Exception ex) {
            SystemException se = new SystemException();
            se.initCause(ex);
            throw se;
        }
    }

View Full Code Here


               throw new SystemException(failedToEnlist + " tx=" + this.currentTx);
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

                     failedToEnlist, this.currentTx));
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

                            LOGGER.debug("new namedXAResource's connection: " + xaConnection);

                            return new ConnectionAndWrapperNamedXAResource(session.getXAResource(), getName(), xaConnection);
                        } catch (Exception e) {
                            SystemException se =  new SystemException("Failed to create ConnectionAndWrapperNamedXAResource, " + e.getLocalizedMessage());
                            se.initCause(e);
                            LOGGER.error(se.getLocalizedMessage(), se);
                            throw se;
                        }
                    }
View Full Code Here

                     failedToEnlist, this.currentTx));
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

               throw new SystemException(failedToEnlist + " tx=" + this.currentTx);
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

               throw new SystemException(failedToEnlist + " tx=" + this.currentTx)
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

/*  795 */           if (this.enlistError == TxConnectionManager.FAILED_TO_ENLIST) {
/*  796 */             throw new SystemException(TxConnectionManager.FAILED_TO_ENLIST + " tx=" + this.currentTx);
/*      */           }
/*      */
/*  799 */           SystemException e = new SystemException(error);
/*  800 */           e.initCause(this.enlistError);
/*  801 */           throw e;
/*      */         }
/*      */
/*  804 */         if (!this.enlisted)
/*      */         {
View Full Code Here

               throw new SystemException(failedToEnlist + " tx=" + this.currentTx);
            }
            else
            {
               SystemException e = new SystemException(error);
               e.initCause(enlistError);
               throw e;
            }
         }
         if (!enlisted)
         {
View Full Code Here

        try {
            txnLog.begin(xid);
        } catch (LogException e) {
            status = Status.STATUS_MARKED_ROLLBACK;
            SystemException ex = new SystemException("Error logging begin; transaction marked for roll back)");
            ex.initCause(e);
            throw ex;
        }
        status = Status.STATUS_ACTIVE;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.