Examples of initCause()


Examples of org.apache.cassandra.exceptions.InvalidRequestException.initCause()

                columnDefs.put(columnName, new ColumnDefinition(columnName, validator, null, null, null, null));
            }
            catch (ConfigurationException e)
            {
                InvalidRequestException ex = new InvalidRequestException(e.toString());
                ex.initCause(e);
                throw ex;
            }
            catch (SyntaxException e)
            {
                InvalidRequestException ex = new InvalidRequestException(e.toString());
View Full Code Here

Examples of org.apache.cassandra.thrift.InvalidRequestException.initCause()

            applyMigrationOnStage(getMigration());
        }
        catch (ConfigurationException e)
        {
            InvalidRequestException ex = new InvalidRequestException(e.toString());
            ex.initCause(e);
            throw ex;
        }
        catch (IOException e)
        {
            InvalidRequestException ex = new InvalidRequestException(e.toString());
View Full Code Here

Examples of org.apache.commons.cli.ParseException.initCause()

        toolArgs = ConfigurationHelper.parseGenericOptions(
            out.getConf(), args);
      } catch (IOException ioe) {
        ParseException pe = new ParseException(
            "Could not parse generic arguments");
        pe.initCause(ioe);
        throw pe;
      }
    }

    // Parse tool-specific arguments.
View Full Code Here

Examples of org.apache.commons.configuration.ConfigurationException.initCause()

                method.invoke(accessManager, PropertyUtils.replaceProperties(argumentValues.get(i)));
            }
            catch (Exception e)
            {
                ConfigurationException ce = new ConfigurationException(e.getMessage(), e.getCause());
                ce.initCause(e);
                throw ce;
            }
        }
    }
View Full Code Here

Examples of org.apache.commons.vfs.FileSystemException.initCause()

            URL location = FlexibleLocation.resolveLocation("ofbizhome://.");
            FileObject ofbizBase = getContext().resolveFile(location.toString(), properties);
            return VFSUtil.toFileObject(ofbizBase.getFileSystem().getFileSystemManager(), ofbizBase.resolveFile(name.substring(13)).getURL().toString(), properties);
        } catch (Exception e) {
            FileSystemException fse = new FileSystemException(e.getMessage(), null, e);
            fse.initCause(e);
            throw fse;
        }
    }
}
View Full Code Here

Examples of org.apache.cxf.binding.soap.SoapFault.initCause()

        SequenceFault sf = new SequenceFault("REASON");
        sf.setFaultCode(RM10Constants.UNKNOWN_SEQUENCE_FAULT_QNAME);
        Identifier sid = new Identifier();
        sid.setValue("SID");
        sf.setSender(true);
        f.initCause(sf);
        message.setContent(Exception.class, f);     
        codec.encode(message);
        verifyHeaders(message, new String[] {RMConstants.SEQUENCE_FAULT_NAME});

    }
View Full Code Here

Examples of org.apache.cxf.interceptor.Fault.initCause()

    public Fault createFault(SequenceFault sf) {
        Fault f = null;
        if (version == Soap11.getInstance()) {
            f = createSoap11Fault(sf);
            // so we can encode the SequenceFault as header  
            f.initCause(sf);
        } else {
            f = createSoap12Fault(sf);
        }
        return f;
    }
View Full Code Here

Examples of org.apache.derby.iapi.error.StandardException.initCause()

        if ( importer != null ) { lineNumber = importer.getCurrentLineNumber(); }
       
        StandardException se = StandardException.newException
            ( SQLState.UNEXPECTED_IMPORT_ERROR, new Integer( lineNumber ), inputFile, t.getMessage() );
        se.initCause(t);

        return PublicAPI.wrapStandardException(se);
    }
   
}
View Full Code Here

Examples of org.apache.directory.api.ldap.model.exception.LdapAuthenticationException.initCause()

        }
        catch ( Exception cause )
        {
            LOG.error( I18n.err( I18n.ERR_6, cause.getLocalizedMessage() ) );
            LdapAuthenticationException e = new LdapAuthenticationException( cause.getLocalizedMessage() );
            e.initCause( cause );
            throw e;
        }

        checkPwdPolicy( userEntry );
View Full Code Here

Examples of org.apache.directory.api.ldap.model.exception.LdapException.initCause()

                    engine = engineType.newInstance();
                }
                catch ( InstantiationException e )
                {
                    LdapException ne = new LdapException( e.getMessage(), e );
                    ne.initCause( e );
                    throw ne;
                }
                catch ( IllegalAccessException e )
                {
                    LdapException ne = new LdapException( e.getMessage(), e );
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.