Package org.apache.avalon.repository

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


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

            buffer.append( "\n build: " + descriptor.getBuild() );
            buffer.append( "\n factory: " + descriptor.getFactory() );
            buffer.append( "\n source: "
              + clazz.getProtectionDomain().getCodeSource().getLocation() );
            buffer.append( "\n cache: " + m_cache );
            throw new RepositoryException( buffer.toString(), e );
        }
    }
View Full Code Here

        catch ( Throwable e )
        {
            final String error =
              "Internal error. "
              + "Unable to locate the standard repository implementation directive.";
            RepositoryException re = new RepositoryException( error, e );
            re.printStackTrace( System.err );
            return null;
        }
    }
View Full Code Here

        catch( Throwable e )
        {
            final String error =
              "Unable to retrieve the metadata for the artifact :"
              + artifact;
            throw new RepositoryException( error, e );
        }
    }
View Full Code Here

        catch( MetaException me )
        {
            final String error =
              "Could not create a relational descriptor from the artifact: "
              + artifact;
            throw new RepositoryException( error, me );
        }
      
        URL[] apis =
          getURLs(
            relational.getDependencies(
View Full Code Here

        }
        catch( ClassNotFoundException e )
        {
            final String error =
              "Could not find the factory class: " + factory;
            throw new RepositoryException( error, e );
        }
        catch( Throwable e )
        {
            final String error =
              "Unable to load factory class: ["
              + factory
              + "].";
            throw new RepositoryException( error, e );
        }
    }
View Full Code Here

                        StringBuffer buffer = new StringBuffer();
                        buffer.append( "Supplied factory class [" );
                        buffer.append( clazz.getName() );
                        buffer.append(
                          " ] does not implement a recognized constructor." );
                        throw new RepositoryException( buffer.toString() );
                    }
                }
            }
        }
    }
View Full Code Here

        {
            final String error =
              "Error while attempting to instantiate the factory: ["
              + clazz.getName()
              + "].";
            throw new RepositoryException( error, e );
        }
    }
View Full Code Here

        }
        catch ( Throwable e )
        {
            final String error =
              "Failed to set remote repositories.";
            throw new RepositoryException( error, e );
        }

        if( defaults.containsKey( REPOSITORY_PROXY_HOST ) )
        {   
            put(
View Full Code Here

TOP

Related Classes of org.apache.avalon.repository.RepositoryException

Copyright © 2018 www.massapicom. 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.