Examples of ServiceException


Examples of com.vaadin.server.ServiceException

                // into individual messages when using certain transports
                AtmosphereInterceptor trackMessageSize = new TrackMessageSizeInterceptor();
                trackMessageSize.configure(atmosphere.getAtmosphereConfig());
                atmosphere.interceptor(trackMessageSize);
            } catch (ServletException e) {
                throw new ServiceException("Atmosphere init failed", e);
            }
        }
    }

Examples of com.vaadin.server.ServiceException

            } else if (LegacyApplication.class.isAssignableFrom(classToRun)) {
                // Avoid using own UIProvider for legacy Application
            } else if (UIProvider.class.isAssignableFrom(classToRun)) {
                session.addUIProvider((UIProvider) classToRun.newInstance());
            } else {
                throw new ServiceException(classToRun.getCanonicalName()
                        + " is neither an Application nor a UI");
            }
        } catch (final IllegalAccessException e) {
            throw new ServiceException(e);
        } catch (final InstantiationException e) {
            throw new ServiceException(e);
        } catch (final ClassNotFoundException e) {
            throw new ServiceException(
                    new InstantiationException(
                            "Failed to load application class: "
                                    + getApplicationRunnerApplicationClassName((VaadinServletRequest) request)));
        }
    }

Examples of com.wizriver.service.ServiceException

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

Examples of com.wm.app.b2b.server.ServiceException

   
      pipelineCursor_1.destroy();
    }
    catch(Exception e)
    {
      throw new ServiceException(e);
    }
     
    // --- <<IS-END>> ---

               

Examples of com.zaranux.client.api.exceptions.ServiceException

      //jsonResponse = jsonResponse; //URL.decodeComponent(jsonResponse);
      zResponse = getResponseJS(jsonResponse);
    }catch(JavaScriptException e)
    {
      Log.error("Response: " + e);
      throw new ServiceException(e.getMessage());
    }
    if(zResponse.isException())
    {
     
      if(zResponse.getExceptionClass().equals("com.zaranux.client.api.exceptions.UnauthorizedAccessException"))
      {
        throw new com.zaranux.client.api.exceptions.UnauthorizedAccessException(zResponse.getExceptionMessage());
      }if(zResponse.getExceptionClass().equals("com.zaranux.client.api.exceptions.ResourceNotFound"))
      {
        throw new com.zaranux.client.api.exceptions.ResourceNotFound();
      }else
      {
        throw new ServiceException(zResponse.getExceptionMessage());
      }
    }
   
    Log.debug("Response: " + zResponse);

Examples of flex.messaging.services.ServiceException

            String beanName = getSource();

            try {
                return appContext.getBean(beanName);
            }catch (NoSuchBeanDefinitionException nexc){
                ServiceException e = new ServiceException();
                String msg = "Spring service named '" + beanName + "' does not exist.";
                e.setMessage(msg);
                e.setRootCause(nexc);
                e.setDetails(msg);
                e.setCode("Server.Processing");
                throw e;
            } catch (BeansException bexc) {
                ServiceException e = new ServiceException();
                String msg = "Unable to create Spring service named '" + beanName + "' ";
                e.setMessage(msg);
                e.setRootCause(bexc);
                e.setDetails(msg);
                e.setCode("Server.Processing");
                throw e;
            }
        }

Examples of fr.openwide.core.jpa.exception.ServiceException

    Document doc;
    try {
      doc = Jsoup.connect(url).header(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE).get();
    } catch (IOException e) {
      throw new ServiceException("IOException: " + e.getMessage(), e);
    }
    return parseMavenMetadata(doc);
  }

Examples of jade.core.ServiceException

    public Node getNode() throws ServiceException {
      try {
        return NotificationService.this.getLocalNode();
      }
      catch(IMTPException imtpe) {
        throw new ServiceException("Problem in contacting the IMTP Manager", imtpe);
      }
    }

Examples of javacard.framework.service.ServiceException

            case 0x27:
                return new UserException(reason);
            case 0x30:
                return new javacard.security.CryptoException(reason);
            case 0x40:
                return new ServiceException(reason);
            default:
                throw new RemoteException(
                        "Unknown exception is thrown on card");
        }
    }

Examples of javax.xml.rpc.ServiceException

    }

    public Call[] getCalls(QName portName) throws ServiceException {

        if (portName == null)
            throw new ServiceException("Portname cannot be null");

        SEIFactory factory = (SEIFactory) portToImplementationMap.get(portName.getLocalPart());
        if( factory == null )
            throw new ServiceException("No port for portname: " + portName);

        OperationInfo[] operationInfos = factory.getOperationInfos();
        javax.xml.rpc.Call[] array = new javax.xml.rpc.Call[operationInfos.length];
        for (int i = 0; i < operationInfos.length; i++) {
            OperationInfo operation = operationInfos[i];
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.