Examples of RepositoryException


Examples of org.apache.archiva.repository.RepositoryException

            {
                FileUtils.deleteDirectory( directory );
            }
            catch ( IOException e )
            {
                throw new RepositoryException( e.getMessage(), e );
            }
        }
        else
        {
            log.warn( "project {}:{} is not a directory", namespace, projectId );
View Full Code Here

Examples of org.apache.avalon.repository.RepositoryException

         }
         catch( Throwable e )
         {
             final String error =
               "Cannot install target: " + url;
             throw new RepositoryException( error, e );
         }
     }
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.RepositoryException

            return cache.repo;
        }
        catch (RuntimeException e)
        {
            throw new RepositoryException("Failed to build repositories", e);
        }
    }
View Full Code Here

Examples of org.apache.isis.applib.RepositoryException

    @Override
    public <T> T uniqueMatch(final Class<T> type, final Predicate<T> predicate) {
        final List<T> instances = allMatches(type, predicate, 0, 2); // No need to fetch more than 2.
        if (instances.size() > 1) {
            throw new RepositoryException("Found more than one instance of " + type + " matching filter " + predicate);
        }
        return firstInstanceElseNull(instances);
    }
View Full Code Here

Examples of org.apache.jackrabbit.ocm.exception.RepositoryException

            RegistryHelper.registerRepository(ctx, repositoryName, configFile, homeDir, true);
        }
        catch (Exception e)
        {
            throw new RepositoryException("Impossible to register the respository : " +
                                           repositoryName + " - config file : " + configFile, e);
        }

    }
View Full Code Here

Examples of org.apache.lenya.cms.repository.RepositoryException

            Document doc = area.getDocument(uuid, lang);

            store = new DocumentStore(doc, getLogger());
        } catch (Exception e) {
            throw new RepositoryException(e);
        }
        return store;
    }
View Full Code Here

Examples of org.apache.maven.archiva.repository.RepositoryException

    private RepositoryProjectResolver toResolver( ArchivaRepository repo )
        throws RepositoryException
    {
        if ( !repo.isManaged() )
        {
            throw new RepositoryException( "Unable to create RepositoryProjectResolver from non-managed repository: "
                + repo );
        }

        try
        {
            BidirectionalRepositoryLayout layout = layoutFactory.getLayout( repo.getLayoutType() );
            ProjectModelReader reader = project400Reader;

            if ( StringUtils.equals( "legacy", repo.getLayoutType() ) )
            {
                reader = project300Reader;
            }

            RepositoryProjectResolver resolver = new RepositoryProjectResolver( repo, reader, layout );
            return resolver;
        }
        catch ( LayoutException e )
        {
            throw new RepositoryException( "Unable to create RepositoryProjectResolver due to invalid layout spec: "
                + repo );
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.workflow.structs.exceptions.RepositoryException

            return eventsVector;

        } catch (Exception e) {
            e.printStackTrace();
            throw new RepositoryException(
                    "Exception getting registered events from repository: Message: "
                            + e.getMessage());
        }

    }
View Full Code Here

Examples of org.apache.sling.ide.transport.RepositoryException

    }

    public static <T> JcrResult<T> failure(Throwable t) {

        return new JcrResult<T>(false, null, new RepositoryException(t));
    }
View Full Code Here

Examples of org.b3log.latke.repository.RepositoryException

     */
    public int getBlogCommentCount() throws JSONException, RepositoryException {
        final JSONObject statistic = statisticRepository.get(Statistic.STATISTIC);

        if (null == statistic) {
            throw new RepositoryException("Not found statistic");
        }

        return statistic.getInt(Statistic.STATISTIC_BLOG_COMMENT_COUNT);
    }
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.