Examples of ServiceException


Examples of org.osgi.framework.ServiceException

                    }
                }
            }
                       
            throw new InvocationTargetException(
                    new ServiceException(REMOTE_EXCEPTION_TYPE, theCause));
        }
    }

Examples of org.pentaho.platform.api.engine.ServiceException

    if ( serviceInstance == null ) {
      try {
        serviceInstance = serviceClassMap.get( serviceId ).newInstance();
        serviceInstanceMap.put( serviceId, serviceInstance );
      } catch ( InstantiationException e ) {
        throw new ServiceException( e );
      } catch ( IllegalAccessException e ) {
        throw new ServiceException( e );
      }
    }
    return serviceInstance;
  }

Examples of org.springside.examples.miniweb.service.ServiceException

   * 删除用户,如果尝试删除超级管理员将抛出异常.
   */
  public void deleteUser(Long id) {
    if (isSupervisor(id)) {
      logger.warn("操作员{}尝试删除超级管理员用户", SpringSecurityUtils.getCurrentUserName());
      throw new ServiceException("不能删除超级管理员用户");
    }
    userDao.delete(id);
  }

Examples of org.springside.examples.quickstart.service.ServiceException

  }

  public void deleteUser(Long id) {
    if (isSupervisor(id)) {
      logger.warn("操作员{}尝试删除超级管理员用户", getCurrentUserName());
      throw new ServiceException("不能删除超级管理员用户");
    }
    userDao.delete(id);
    taskDao.deleteByUserId(id);

  }

Examples of org.thechiselgroup.choosel.core.client.util.ServiceException

            reader.close();

            return content;

        } catch (MalformedURLException e) {
            throw new ServiceException(e.getMessage());
        } catch (IOException e) {
            throw new ServiceException(e.getMessage());
        }

    }

Examples of org.universa.tcc.gemda.service.ServiceException

  public void inserir(T entidade) throws ValidationException, ServiceException {
    validarEntidadeParaInserir(entidade);
    try {
      dao.inserir(entidade);
    } catch (DAOException e) {
      throw new ServiceException(obterEntidadeDoParametroGenerico(), EventType.INSERIR, e);
    }
  }

Examples of org.vfny.geoserver.ServiceException

            //end for
            //prepare to encode in the desired output format
            delegate.prepare(outputFormat, results);
        } catch (IOException e) {
            throw new ServiceException(e, "problem with FeatureResults", request.getHandle());
        } catch (NoSuchElementException e) {
            throw new ServiceException(e, "problem with FeatureResults", request.getHandle());
        } catch (SchemaException e) {
            throw new ServiceException(e, "problem with FeatureResults", request.getHandle());
        } catch (ParseException e) {
            throw new ServiceException(e, "problem with FeatureResults", request.getHandle());
        }
    }

Examples of org.vosao.service.ServiceException

  public ServiceResponse save(Map<String, String> vo) {
    try {
      GroupEntity group = getDao().getGroupDao().getById(Long.valueOf((
        vo.get("groupId"))));
      if (group == null) {
        throw new ServiceException(Messages.get("group_not_found"));
      }
      String url = vo.get("url");
      ContentPermissionType perm = ContentPermissionType.valueOf(
        vo.get("permission"));
      String languages = StringUtils.isEmpty(vo.get("languages")) ? null :

Examples of q_impress.pmi.lib.services.ServiceException

    String message = null;
   
    if (this.target == null) message = "target not specified";
    if (this.outStream == null) message = "stream not specified";
   
    if (message != null) throw new ServiceException(this, "Cannot initialize service, " + message + ".");
  }

Examples of xbird.server.ServiceException

            try {
                grid.shutdown(true);
            } catch (RemoteException re) {
                ;
            }
            throw new ServiceException(e.getMessage(), e);
        }
    }
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.