Examples of initCause()


Examples of org.apache.directory.shared.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( e );
            throw e;
        }

        checkPwdPolicy( userEntry );
View Full Code Here

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

            return false;
        }
        catch ( Exception e )
        {
            LdapException ldapException = new LdapException( LdapNetworkConnection.NO_RESPONSE_ERROR );
            ldapException.initCause( e );

            // close the cursor
            close( ldapException );

            throw ldapException;
View Full Code Here

Examples of org.apache.directory.shared.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.shared.ldap.model.exception.LdapInvalidDnException.initCause()

            dnParser.relativeDistinguishedNames( rdns );
        }
        catch ( Exception e )
        {
            LdapInvalidDnException ine = new LdapInvalidDnException( ResultCodeEnum.INVALID_DN_SYNTAX, e.getMessage() );
            ine.initCause( e );
            throw ine;
        }
    }

View Full Code Here

Examples of org.apache.directory.shared.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.shared.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.shared.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.felix.framework.resolver.ResolveException.initCause()

                    }

                    ResolveException re = new ResolveException(
                        "Unable to resolve " + revision,
                        revision, null);
                    re.initCause(ex);
                    m_felix.getLogger().log(
                        Logger.LOG_ERROR,
                        re.getMessage(), ex);
                    throw re;
                }
View Full Code Here

Examples of org.apache.hadoop.hbase.DroppedSnapshotException.initCause()

      if (wal != null) {
        wal.abortCacheFlush(this.regionInfo.getEncodedNameAsBytes());
      }
      DroppedSnapshotException dse = new DroppedSnapshotException("region: " +
          Bytes.toStringBinary(getRegionName()));
      dse.initCause(t);
      status.abort("Flush failed: " + StringUtils.stringifyException(t));
      throw dse;
    }

    // If we get to here, the HStores have been written. If we get an
View Full Code Here

Examples of org.apache.hadoop.hbase.UnknownRegionException.initCause()

        this.cpHost.postMove(p.getFirst(), p.getSecond(), dest);
      }
    } catch (IOException ioe) {
      UnknownRegionException ure = new UnknownRegionException(
          Bytes.toStringBinary(encodedRegionName));
      ure.initCause(ioe);
      throw ure;
    }

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