Examples of initCause()


Examples of org.apache.jetspeed.page.document.NodeNotFoundException.initCause()

                        currentFolder = currentFolder.getFolder(subfolder);
                    }
                    catch (NodeException ne)
                    {
                        NodeNotFoundException nnfe = new NodeNotFoundException("Specified path " + path + " not found.");
                        nnfe.initCause(ne);
                        throw nnfe;
                    }
                    catch (NodeNotFoundException nnfe)
                    {
                        // check security access to folder not found in site view
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapConfigurationException.initCause()

            cfg.validate();
        }
        catch( ConfigurationException e )
        {
            NamingException ne = new LdapConfigurationException( "Invalid configuration." );
            ne.initCause( e );
            throw ne;
        }

        this.environment = envCopy;
        this.startupConfiguration = cfg;
View Full Code Here

Examples of org.apache.lucene.index.CorruptIndexException.initCause()

          BigDecimal bd;
          try {
            bd = (BigDecimal) decoder.parse(scratch.utf8ToString());
          } catch (ParseException pe) {
            CorruptIndexException e = new CorruptIndexException("failed to parse BigDecimal value (resource=" + in + ")");
            e.initCause(pe);
            throw e;
          }
          SimpleTextUtil.readLine(in, scratch); // read the line telling us if its real or not
          return BigInteger.valueOf(field.minValue).add(bd.toBigIntegerExact()).longValue();
        } catch (IOException ioe) {
View Full Code Here

Examples of org.apache.maven.plugin.MojoFailureException.initCause()

                if ( e instanceof MojoExecutionException ) {
                    throw new MojoExecutionException(e.getMessage(), e);
                }
                else if ( e instanceof MojoFailureException ) {
                    MojoFailureException x = new MojoFailureException(e.getMessage());
                    x.initCause(e);
                    throw x;
                }
                else {
                    throw new MojoExecutionException(e.getMessage(), e);
                }
View Full Code Here

Examples of org.apache.maven.reporting.MavenReportException.initCause()

            } else {
                writeIndexHtmlFile(outputDirectory, "index.html", indexHtmlContent);
            }
        } catch (Exception e) {
            final MavenReportException ex = new MavenReportException(e.getMessage());
            ex.initCause(e.getCause());
            throw ex;
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.pig.backend.executionengine.ExecException.initCause()

            return new String[] {hdfs, mapred};
        }
        catch (Exception e) {
            ExecException ee = new ExecException("Could not connect to HOD");
            ee.initCause(e);
            throw ee;
        }
    }

    private synchronized void closeHod(String server){
View Full Code Here

Examples of org.apache.pig.impl.logicalLayer.validators.UnionOnSchemaSetException.initCause()

            }
            catch (FrontendException e) {
                String msg = "Error adding union operator " + loUnion.getAlias()
                   + ":" + e.getMessage();
                UnionOnSchemaSetException pe = new UnionOnSchemaSetException(msg);
                pe.initCause(e);
                throw pe; 
            }
           
        }
       
View Full Code Here

Examples of org.apache.qpid.AMQConnectionException.initCause()

            {
                if (lastException instanceof UnresolvedAddressException)
                {
                    e = new AMQUnresolvedAddressException(message, _failoverPolicy.getCurrentBrokerDetails().toString());
                }
                e.initCause(lastException);
            }

            throw e;
        }
    }
View Full Code Here

Examples of org.apache.qpid.AMQConnectionFailureException.initCause()

                if (lastException instanceof UnresolvedAddressException)
                {
                    e = new AMQUnresolvedAddressException(message, _failoverPolicy.getCurrentBrokerDetails().toString());
                }

                e.initCause(lastException);
            }

            throw e;
        }
View Full Code Here

Examples of org.apache.qpid.AMQException.initCause()

                if (lastException instanceof UnresolvedAddressException)
                {
                    e = new AMQUnresolvedAddressException(message, _failoverPolicy.getCurrentBrokerDetails().toString());
                }

                e.initCause(lastException);
            }

            throw e;
        }
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.