Examples of initCause()


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

            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException(
                    ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_405,
                        value ) );
                iave.initCause( e );
                throw iave;
            }
        }

        return syntaxCheckerDescriptions;
View Full Code Here

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

            regex = snode.getRegex( normalizer );
        }
        catch ( PatternSyntaxException pse )
        {
            LdapInvalidSearchFilterException ne = new LdapInvalidSearchFilterException( I18n.err( I18n.ERR_248, node ) );
            ne.initCause( pse );
            throw ne;
        }

        /*
         * Cycle through the attribute values testing normalized version
View Full Code Here

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

            }
            catch ( Exception e )
            {
                e.printStackTrace();
                LdapOperationException le = new LdapOperationException( e.getMessage(), e );
                le.initCause( e );
                throw le;
            }
        }

        if ( IS_DEBUG )
View Full Code Here

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

            return engine.invokeProcedure( opContext.getSession(), procedure, values );
        }
        catch ( Exception e )
        {
            LdapOtherException lne = new LdapOtherException( e.getMessage(), e );
            lne.initCause( e );
            throw lne;
        }
    }
}
View Full Code Here

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

            response = future.get( timeout, timeUnit );
        }
        catch ( Exception e )
        {
            LdapException ldapException = new LdapException( LdapConnection.NO_RESPONSE_ERROR );
            ldapException.initCause( e );

            // Send an abandon request
            if ( !future.isCancelled() )
            {
                future.cancel( true );
View Full Code Here

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

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

        Value<?> userPassword;
View Full Code Here

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

                    engine = engineType.newInstance();
                }
                catch ( InstantiationException e )
                {
                    LdapException ne = new LdapException( e.getMessage() );
                    ne.initCause( e );
                    throw ne;
                }
                catch ( IllegalAccessException e )
                {
                    LdapException ne = new LdapException( e.getMessage() );
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException.initCause()

            }
            catch ( ParseException e )
            {
                LdapInvalidAttributeValueException iave = new LdapInvalidAttributeValueException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n.err( I18n.ERR_405,
                        value ) );
                iave.initCause( e );
                throw iave;
            }
        }

        return syntaxCheckerDescriptions;
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapInvalidSearchFilterException.initCause()

            regex = snode.getRegex( normalizer );
        }
        catch ( PatternSyntaxException pse )
        {
            LdapInvalidSearchFilterException ne = new LdapInvalidSearchFilterException( I18n.err( I18n.ERR_248, node ) );
            ne.initCause( pse );
            throw ne;
        }

        /*
         * Cycle through the attribute values testing normalized version
View Full Code Here

Examples of org.apache.directory.shared.ldap.exception.LdapOtherException.initCause()

            return engine.invokeProcedure( opContext.getSession(), procedure, values );
        }
        catch ( Exception e )
        {
            LdapOtherException lne = new LdapOtherException( e.getMessage() );
            lne.initCause( e );
            throw lne;
        }
    }

}
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.