Package org.sonatype.nexus.client.core.exception

Examples of org.sonatype.nexus.client.core.exception.NexusClientErrorResponseException


        // convert them to hide stupid "old" REST model, and not have it leak out
        final List<ErrorMessage> errors = Lists.newArrayList();
        for (org.sonatype.nexus.client.internal.msg.ErrorMessage message : errorResponse.getErrors()) {
          errors.add(new NexusClientErrorResponseException.ErrorMessage(message.getId(), message.getMsg()));
        }
        throw new NexusClientErrorResponseException(
            response.getClientResponseStatus().getReasonPhrase(),
            body,
            errors
        );
      }
View Full Code Here


            new ArrayList<NexusClientErrorResponseException.ErrorMessage>(errorResponse.getErrors().size());
        for (ErrorMessage message : errorResponse.getErrors()) {
          errors.add(
              new NexusClientErrorResponseException.ErrorMessage(message.getId(), message.getMsg()));
        }
        return new NexusClientErrorResponseException(
            response.getClientResponseStatus().getReasonPhrase(),
            body,
            errors
        );
      }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.client.core.exception.NexusClientErrorResponseException

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.