Package org.sonatype.nexus.proxy.repository

Examples of org.sonatype.nexus.proxy.repository.GroupItemNotFoundException


    // indent
    sb.append(Strings.padEnd("", depth * 2, ' '));
    sb.append(t.getClass().getSimpleName()).append("( ").append(t.getMessage()).append(" )");

    if (t instanceof GroupItemNotFoundException) {
      final GroupItemNotFoundException ginf = (GroupItemNotFoundException) t;
      sb.append(" repo=").append(ginf.getReason().getRepository().getId());

      for (Throwable r : ginf.getMemberReasons().values()) {
        sb.append(dumpNotFoundReasoning(r, depth + 1));
      }
    }

    return sb.toString();
View Full Code Here


    if (repository != null) {
      reasoning.setRepositoryId(repository.getId());
    }

    if (t instanceof GroupItemNotFoundException) {
      final GroupItemNotFoundException ginf = (GroupItemNotFoundException) t;
      reasoning.setRepositoryId(ginf.getReason().getRepository().getId());

      for (Map.Entry<Repository, Throwable> r : ginf.getMemberReasons().entrySet()) {
        reasoning.addNotFoundReasoning(buildNotFoundReasoning(r.getKey(), r.getValue()));
      }
    }

    return reasoning;
View Full Code Here

  }

  private Reasoning buildReasoning(final String repositoryId, final Throwable ex) {
    final Reasoning result = new Reasoning(repositoryId, ex.getMessage());
    if (ex instanceof GroupItemNotFoundException) {
      final GroupItemNotFoundException ginfex = (GroupItemNotFoundException) ex;
      for (Entry<Repository, Throwable> memberReason : ginfex.getMemberReasons().entrySet()) {
        result.getMembers().add(buildReasoning(memberReason.getKey().getId(), memberReason.getValue()));
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.repository.GroupItemNotFoundException

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.