Package com.vmware.bdd.plugin.ambari.api.model

Examples of com.vmware.bdd.plugin.ambari.api.model.ApiErrorMessage


      String result = response.readEntity(String.class);
      int errCode = response.getStatus();
      if (!HttpStatus.isSuccess(errCode)) {
         String errMessage = null;
         if (result != null && !result.isEmpty()) {
            ApiErrorMessage apiErrorMessage = ApiUtils.jsonToObject(ApiErrorMessage.class, result);
            errMessage = apiErrorMessage.getStatus() + " " + apiErrorMessage.getMessage();
         } else {
            errMessage = errCode + " " + HttpStatus.getMessage(errCode);
         }
         throw AmbariApiException.RESPONSE_EXCEPTION(errCode, errMessage);
      }
View Full Code Here

TOP

Related Classes of com.vmware.bdd.plugin.ambari.api.model.ApiErrorMessage

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.