Examples of SCMPCommandException


Examples of org.serviceconnector.cmd.SCMPCommandException

   *             the SCMP command exception
   */
  protected PublishService validatePublishService(Service service) throws SCMPCommandException {
    if (service.getType() != ServiceType.PUBLISH_SERVICE && service.getType() != ServiceType.CACHE_GUARDIAN) {
      // service is not publish service
      SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.V_WRONG_SERVICE_TYPE, service.getName()
          + " is not publish service");
      scmpCommandException.setMessageType(getKey());
      throw scmpCommandException;
    }
    return (PublishService) service;
  }
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.