Examples of initCause()


Examples of org.apache.xmlbeans.XmlRuntimeException.initCause()

            return ((Boolean)JaxbCodeGeneratorHolder._jaxbCodeGeneratorMethod.invoke(null, new Object[] { saver, sourcefiles, sourcedir, classesdir, errors })).booleanValue();
        }
        catch (InvocationTargetException e)
        {
            XmlRuntimeException e2 = new XmlRuntimeException(e.getMessage());
            e2.initCause(e);
            throw e2;
        }
        catch (IllegalAccessException e)
        {
            XmlRuntimeException e2 = new XmlRuntimeException(e.getMessage());
View Full Code Here

Examples of org.apache.zookeeper.KeeperException.initCause()

   * @param e Exception to convert
   * @return Converted exception
   */
  public static KeeperException convert(final DeserializationException e) {
    KeeperException ke = new KeeperException.DataInconsistencyException();
    ke.initCause(e);
    return ke;
  }

  /**
   * Recursively print the current state of ZK (non-transactional)
View Full Code Here

Examples of org.codehaus.commons.compiler.CompileException.initCause()

        } catch (InstantiationException ie) {
            CompileException ce = new CompileException((
                "Class is abstract, an interface, an array class, a primitive type, or void; "
                + "or has no zero-parameter constructor"
            ), null);
            ce.initCause(ie);
            throw ce;
        } catch (IllegalAccessException iae) {
            CompileException ce = new CompileException(
                "The class or its zero-parameter constructor is not accessible",
                null
View Full Code Here

Examples of org.codehaus.plexus.archiver.jar.ManifestException.initCause()

                        catch ( InterpolationException e )
                        {
                            ManifestException error = new ManifestException(
                                "Error interpolating artifact path for classpath entry: " + e.getMessage() );

                            error.initCause( e );
                            throw error;
                        }
                        finally
                        {
                            for ( ValueSource vs : valueSources )
View Full Code Here

Examples of org.datanucleus.store.query.QueryTimeoutException.initCause()

        "Could not retrieve entity of kind " + key.getKind() + " with key " + key);
  }

  public static QueryTimeoutException wrapDatastoreTimeoutExceptionForQuery(DatastoreTimeoutException e) {
    QueryTimeoutException qte = new QueryTimeoutException(e.getMessage());
    qte.initCause(e);
    return qte;
  }
}
View Full Code Here

Examples of org.dom4j.DocumentException.initCause()

                    e2.printStackTrace();
                }
                throw e2;
            } catch (DocumentException e) {
                DocumentException e2 = new DocumentException("Error parsing " + newFilename);
                e2.initCause(e);
                if (verbose) {
                    e2.printStackTrace();
                }
                throw e2;
            }
View Full Code Here

Examples of org.drools.smf.FactoryException.initCause()

                                                            type );
            }
            catch ( InvalidRuleException e )
            {
                final FactoryException factoryException = new FactoryException( "Error occurred establishing parameter." );
                factoryException.initCause( e );
                throw factoryException;
            }
        }
        return declaration;
    }
View Full Code Here

Examples of org.eclipse.jgit.errors.CorruptObjectException.initCause()

      CorruptObjectException corruptObject = new CorruptObjectException(
          MessageFormat.format(
              JGitText.get().objectAtHasBadZlibStream,
              Long.valueOf(src.offset), getPackName()));
      corruptObject.initCause(dataFormat);

      StoredObjectRepresentationNotAvailableException gone;
      gone = new StoredObjectRepresentationNotAvailableException(src);
      gone.initCause(corruptObject);
      throw gone;
View Full Code Here

Examples of org.eclipse.jgit.errors.LargeObjectException.initCause()

  public byte[] getCachedBytes() throws LargeObjectException {
    try {
      throw new LargeObjectException(getObjectId());
    } catch (IOException cannotObtainId) {
      LargeObjectException err = new LargeObjectException();
      err.initCause(cannotObtainId);
      throw err;
    }
  }

  @Override
View Full Code Here

Examples of org.eclipse.jgit.errors.RepositoryNotFoundException.initCause()

      return db;
    } catch (IOException e1) {
      final RepositoryNotFoundException e2;
      e2 = new RepositoryNotFoundException("Cannot create repository " + name);
      e2.initCause(e1);
      throw e2;
    }
  }

  private void onCreateProject(final Project.NameKey newProjectName) {
View Full Code Here
TOP
Copyright © 2015 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.