congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RepositoryNotFoundException
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.archiva.repository.RepositoryNotFoundException (Showing top 13 results out of 315)

origin: org.apache.archiva/archiva-rest-services

log.error( e.getMessage(), e );
throw new ArchivaRestServiceException( e.getMessage(),
                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e );
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

log.error( e.getMessage(), e );
throw new ArchivaRestServiceException( e.getMessage(),
                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e );
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: org.apache.archiva/archiva-rest-services

log.error( e.getMessage(), e );
throw new ArchivaRestServiceException( e.getMessage(),
                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), e );
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 );
  }
}
origin: org.apache.archiva/archiva-core-consumers

@Override
public void beginScan( ManagedRepository repoConfig, Date whenGathered )
  throws ConsumerException
{
  try
  {
    this.repository = repositoryFactory.getManagedRepositoryContent( repoConfig.getId() );
    this.repositoryDir = new File( repository.getRepoRoot() );
    this.scanStartTimestamp = System.currentTimeMillis();
  }
  catch ( RepositoryNotFoundException e )
  {
    throw new ConsumerException( e.getMessage(), e );
  }
  catch ( RepositoryException e )
  {
    throw new ConsumerException( e.getMessage(), e );
  }
}
origin: apache/archiva

throw new ArchivaRestServiceException( "Target repository cannot be found: " + re.getMessage(),
                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), re );
origin: org.apache.archiva/archiva-web-common

throw new ArchivaRestServiceException( "Target repository cannot be found: " + re.getMessage(),
                    Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), re );
origin: org.apache.archiva/archiva-proxy

log.warn( "Unable to use proxy connector: {}", e.getMessage(), e );
origin: apache/archiva

throw new ArchivaRestServiceException( "Target repository cannot be found: " + e.getMessage(), 400, e );
origin: org.apache.archiva/archiva-rest-services

throw new ArchivaRestServiceException( "Target repository cannot be found: " + e.getMessage(), 400, e );
origin: org.apache.archiva/archiva-core-consumers

throw new ConsumerException( "Can't run repository purge: " + e.getMessage(), e );
org.apache.archiva.repositoryRepositoryNotFoundException

Javadoc

RepositoryNotFoundException

Most used methods

  • getMessage
  • <init>

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • BoxLayout (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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