Examples of initCause()


Examples of javax.sound.midi.MidiUnavailableException.initCause()

                if (isOpen())
                    close();
                // am: need MidiUnavailableException(Throwable) ctor!
                MidiUnavailableException ex = new MidiUnavailableException(
                        "Can not open line");
                ex.initCause(causeException);
                throw ex;
            }

        }
    }
View Full Code Here

Examples of javax.sql.rowset.spi.SyncProviderException.initCause()

                }
            } catch (SQLException ex) {
                // ignore
            }
            SyncProviderException ex = new SyncProviderException();
            ex.initCause(e);
            throw ex;
        } finally {
            conn = preConn;
            if (currentConn != null) {
                try {
View Full Code Here

Examples of javax.swing.UnsupportedLookAndFeelException.initCause()

                });
            UIManager.setLookAndFeel(laf);
        } catch (UnsupportedLookAndFeelRuntimeException e) {
            UnsupportedLookAndFeelException newExc =
                new UnsupportedLookAndFeelException(e.getMessage());
            newExc.initCause(e);
            throw newExc;
        } finally {
            System.setErr(origSystemErr);
        }
    }
View Full Code Here

Examples of javax.swing.text.BadLocationException.initCause()

                throw new BadLocationException("line " + line + " does not exist", -line);
            }
            return element.getStartOffset();
        } catch (ArrayIndexOutOfBoundsException aioobe) {
            BadLocationException ble = new BadLocationException("line " + line + " does not exist", -line);
            ble.initCause(aioobe);
            throw ble;
        }
    }

    private int offsetToY(int offset) throws BadLocationException {
View Full Code Here

Examples of javax.swing.undo.CannotRedoException.initCause()

            try {
                restore(afterDoc.getRoot());
            }
            catch (XMLException e) {
                final CannotRedoException cre = new CannotRedoException();
                cre.initCause(e);
                throw cre;
            }
            currentEdit = new OpControlEdit();
        }
    }
View Full Code Here

Examples of javax.swing.undo.CannotUndoException.initCause()

            try {
                restore(beforeDoc.getRoot());
            }
            catch (XMLException e) {
                final CannotUndoException cue = new CannotUndoException();
                cue.initCause(e);
                throw cue;
            }
            currentEdit = new OpControlEdit();
        }
View Full Code Here

Examples of javax.transaction.HeuristicMixedException.initCause()

                throw illegalStateException;
      }
      catch (org.omg.CosTransactions.HeuristicMixed e2)
      {
                HeuristicMixedException heuristicMixedException = new javax.transaction.HeuristicMixedException();
                heuristicMixedException.initCause(e2);
                throw heuristicMixedException;
      }
      catch (org.omg.CosTransactions.HeuristicHazard e3)
      {
                HeuristicMixedException heuristicMixedException = new javax.transaction.HeuristicMixedException();
View Full Code Here

Examples of javax.transaction.NotSupportedException.initCause()

            getTransactionManager();
        } catch (Exception e) {
            NotSupportedException nse =
                new NotSupportedException(_loc
                        .get("tm-unavailable", _runtime).getMessage());
            nse.initCause(e);
            throw nse;
        }
        _runtime.doNonTransactionalWork(runnable);
    }
}
View Full Code Here

Examples of javax.transaction.RollbackException.initCause()

        RollbackException rollbackException = new RollbackException(
            jtaLogger.logMesg
                .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted"));
        if (_theTransaction.getDeferredThrowable() != null)
        {
          rollbackException.initCause(_theTransaction
              .getDeferredThrowable());
        }
        throw rollbackException;
      default:
        throw new IllegalStateException(
View Full Code Here

Examples of javax.transaction.SystemException.initCause()

               if (enlistError == FAILED_TO_ENLIST)
                  throw new SystemException(FAILED_TO_ENLIST + " tx=" + currentTx);
               else
               {
                  SystemException e = new SystemException(error);
                  e.initCause(enlistError);
                  throw e;
               }
            }
            if (enlisted == false)
            {
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.