Examples of BddException


Examples of com.vmware.bdd.exception.BddException

   public BddErrorMessage handleException(Throwable t,
         HttpServletResponse response) {
      if (t instanceof NestedRuntimeException) {
         t = BddException.BAD_REST_CALL(t, t.getMessage());
      }
      BddException ex =
            BddException.wrapIfNeeded(t, "REST API transport layer error.");
      logger.error("rest call error", ex);
      response.setStatus(getHttpErrorCode(ex.getFullErrorId()));
      return new BddErrorMessage(ex.getFullErrorId(), extractErrorMessage(ex));
   }
View Full Code Here

Examples of com.vmware.bdd.exception.BddException

   }

   @AfterThrowing(pointcut = "loggingExceptionInServiceCall()", throwing = "t")
   public void logException(Throwable t) throws Throwable {
      logger.info("Aspect for exception handling");
      BddException ex = BddException.wrapIfNeeded(t, "Service AOP.");
      logger.error("Service error", ex);
      throw t;
   }
View Full Code Here

Examples of com.vmware.bdd.exception.BddException

         logger.warn("AmbariFactory:: Url parse error: " + e.getMessage());
      }
      if (url == null || CommonUtil.isBlank(url.getHost())) {
         String msg = "The format of URL  " + URL + "is invalid.";
         logger.warn(msg);
         throw new BddException(null, "SOFT_MANAGER", "INVALID_URL", msg);
      }
      return new AmbariImpl(url, username, new String(password), certificate);
   }
View Full Code Here

Examples of com.vmware.bdd.exception.BddException

         logger.warn("ClouderaManagerFactory:: Url parse error: " + e.getMessage());
      }
      if (url == null || CommonUtil.isBlank(url.getHost())) {
         String msg = "The format of URL  " + URL + "is invalid.";
         logger.warn(msg);
         throw new BddException(null, "SOFT_MANAGER", "INVALID_URL", msg);
      }
      return new ClouderaManagerImpl(url, username, new String(password),
            certificate);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.