Tabnine Logo
RepositoryNotFoundException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.archiva.repository.RepositoryNotFoundException
constructor

Best Java code snippets using org.apache.archiva.repository.RepositoryNotFoundException.<init> (Showing top 3 results out of 315)

origin: apache/archiva

public RemoteRepositoryContent getRemoteRepositoryContent( String repoId )
  throws RepositoryException
{
  RemoteRepositoryContent repo = remoteContentMap.get( repoId );
  if ( repo != null )
  {
    return repo;
  }
  else
  {
    throw new RepositoryNotFoundException(
      "Unable to find remote repository configuration for id:" + repoId );
  }
}
origin: apache/archiva

/**
 * Get the ManagedRepositoryContent object for the repository Id specified.
 *
 * @param repoId the repository id to fetch.
 * @return the ManagedRepositoryContent object associated with the repository id.
 * @throws RepositoryNotFoundException if the repository id does not exist within the configuration.
 * @throws RepositoryException         the repository content object cannot be loaded due to configuration issue.
 */
public ManagedRepositoryContent getManagedRepositoryContent( String repoId )
  throws RepositoryException
{
  ManagedRepositoryContent repo = managedContentMap.get( repoId );
  if ( repo != null )
  {
    return repo;
  }
  else
  {
    throw new RepositoryNotFoundException(
      "Unable to find managed repository configuration for id " + repoId );
  }
}
origin: apache/archiva

@Override
public void beginScan( ManagedRepository repoConfig, Date whenGathered )
  throws ConsumerException
{
  try
  {
    ManagedRepository repo = repositoryRegistry.getManagedRepository( repoConfig.getId( ) );
    if (repo==null) {
      throw new RepositoryNotFoundException( "Repository not found: "+repoConfig.getId() );
    }
    this.repository = repo.getContent();
    if (this.repository==null) {
      throw new RepositoryNotFoundException( "Repository content not found: "+repoConfig.getId() );
    }
    this.repositoryDir = Paths.get( repository.getRepoRoot( ) );
    this.scanStartTimestamp = System.currentTimeMillis( );
  }
  catch ( RepositoryException e )
  {
    throw new ConsumerException( e.getMessage( ), e );
  }
}
org.apache.archiva.repositoryRepositoryNotFoundException<init>

Popular methods of RepositoryNotFoundException

  • getMessage

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFrame (javax.swing)
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now