congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NoSuchRepositoryException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
org.sonatype.nexus.proxy.NoSuchRepositoryException

Best Java code snippets using org.sonatype.nexus.proxy.NoSuchRepositoryException.getMessage (Showing top 15 results out of 315)

origin: org.sonatype.nexus/nexus-indexer-lucene-app

public void optimizeRepositoryIndex( String repositoryId )
  throws IOException
{
  try
  {
    optimizeIndex( repositoryRegistry.getRepository( repositoryId ) );
  }
  catch ( NoSuchRepositoryException e )
  {
    // should never happen
    getLogger().error( e.getMessage(), e );
  }
}
origin: org.sonatype.nexus/nexus-indexer-lucene-app

public void optimizeGroupIndex( String groupId )
  throws IOException
{
  try
  {
    GroupRepository group = repositoryRegistry.getRepositoryWithFacet( groupId, GroupRepository.class );
    optimizeIndex( group );
  }
  catch ( NoSuchRepositoryException e )
  {
    // should never happen
    getLogger().error( e.getMessage(), e );
  }
}
origin: org.sonatype.nexus.plugins/nexus-indexer-lucene-plugin

getLogger().error(e.getMessage(), e);
continue;
getLogger().error(e.getMessage(), e);
origin: org.sonatype.nexus/nexus-indexer-lucene-rest-api

getLogger().error( e.getMessage(), e );
continue;
getLogger().error( e.getMessage(), e );
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

protected MavenRepository getMavenRepository(String id)
  throws ResourceException
{
 try {
  Repository repository = getUnprotectedRepositoryRegistry().getRepository(id);
  if (!repository.getRepositoryKind().isFacetAvailable(MavenRepository.class)) {
   throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "This is not a Maven repository!");
  }
  return repository.adaptToFacet(MavenRepository.class);
 }
 catch (NoSuchRepositoryException e) {
  throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, e.getMessage(), e);
 }
}
origin: org.sonatype.nexus/nexus-rest-api

protected MavenRepository getMavenRepository( String id )
  throws ResourceException
{
  try
  {
    Repository repository = getUnprotectedRepositoryRegistry().getRepository( id );
    if ( !repository.getRepositoryKind().isFacetAvailable( MavenRepository.class ) )
    {
      throw new ResourceException( Status.CLIENT_ERROR_BAD_REQUEST, "This is not a Maven repository!" );
    }
    return repository.adaptToFacet( MavenRepository.class );
  }
  catch ( NoSuchRepositoryException e )
  {
    throw new ResourceException( Status.CLIENT_ERROR_NOT_FOUND, e.getMessage(), e );
  }
}
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, e.getMessage());
origin: org.sonatype.nexus/nexus-rest-api

throw new ResourceException( Status.CLIENT_ERROR_NOT_FOUND, e.getMessage() );
origin: org.sonatype.nexus/nexus-indexer-lucene-rest-api

getLogger().error( e.getMessage(), e );
origin: org.sonatype.nexus.plugins/nexus-indexer-lucene-plugin

getLogger().error(e.getMessage(), e);
origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

public void handleDelete(NexusTask<?> task, Request request)
  throws ResourceException
{
 try {
  // check reposes
  if (getRepositoryGroupId(request) != null) {
   getRepositoryRegistry().getRepositoryWithFacet(getRepositoryGroupId(request), GroupRepository.class);
  }
  else if (getRepositoryId(request) != null) {
   try {
    getRepositoryRegistry().getRepository(getRepositoryId(request));
   }
   catch (NoSuchRepositoryException e) {
    getRepositoryRegistry().getRepositoryWithFacet(getRepositoryId(request), ShadowRepository.class);
   }
  }
  getNexusScheduler().submit("Internal", task);
  throw new ResourceException(Status.SUCCESS_NO_CONTENT);
 }
 catch (RejectedExecutionException e) {
  throw new ResourceException(Status.CLIENT_ERROR_CONFLICT, e.getMessage());
 }
 catch (NoSuchRepositoryException e) {
  throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, e.getMessage());
 }
}
origin: org.sonatype.nexus/nexus-proxy

new ValidationMessage( "shadowOf", e.getMessage(), "The source nexus repository is not existing." );
origin: org.sonatype.nexus.plugins/nexus-indexer-lucene-plugin

public void handleDelete(NexusTask<?> task, Request request)
  throws ResourceException
{
 try {
  // check reposes
  if (getRepositoryGroupId(request) != null) {
   getRepositoryRegistry().getRepositoryWithFacet(getRepositoryGroupId(request), GroupRepository.class);
  }
  else if (getRepositoryId(request) != null) {
   try {
    getRepositoryRegistry().getRepository(getRepositoryId(request));
   }
   catch (NoSuchRepositoryException e) {
    getRepositoryRegistry().getRepositoryWithFacet(getRepositoryId(request), ShadowRepository.class);
   }
  }
  getNexusScheduler().submit("Internal", task);
  throw new ResourceException(Status.SUCCESS_NO_CONTENT);
 }
 catch (RejectedExecutionException e) {
  throw new ResourceException(Status.CLIENT_ERROR_CONFLICT, e.getMessage());
 }
 catch (NoSuchRepositoryException e) {
  throw new ResourceException(Status.CLIENT_ERROR_NOT_FOUND, e.getMessage());
 }
}
origin: org.sonatype.nexus/nexus-rest-api

throw new ResourceException( Status.CLIENT_ERROR_NOT_FOUND, e.getMessage() );
origin: org.sonatype.nexus/nexus-indexer-lucene-rest-api

throw new ResourceException( Status.CLIENT_ERROR_NOT_FOUND, e.getMessage() );
org.sonatype.nexus.proxyNoSuchRepositoryExceptiongetMessage

Popular methods of NoSuchRepositoryException

  • <init>
    Constructs a new exception with the specified detail message and cause. Usable in cases where reposi

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JButton (javax.swing)
  • Best IntelliJ plugins
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