Examples of AraneaRuntimeException


Examples of org.araneaframework.core.AraneaRuntimeException

    this.beanMapper = new BeanMapper(beanClass);
  }
 
  private Data inferDataType(String fieldId) {
    if (!beanMapper.fieldExists(fieldId))
      throw new AraneaRuntimeException("Could not infer type for bean field '" + fieldId + "'!");

    return new Data(beanMapper.getBeanFieldType(fieldId));
  }
View Full Code Here

Examples of org.araneaframework.core.AraneaRuntimeException

    return new Data(beanMapper.getBeanFieldType(fieldId));
  }
 
  public BeanFormWidget addBeanSubForm(String id) throws Exception {
    if (!beanMapper.fieldExists(id))
      throw new AraneaRuntimeException("Could not infer type for bean subform '" + id + "'!");

    BeanFormWidget result = new BeanFormWidget(beanMapper.getBeanFieldType(id));
    addElement(id, result);
    return result;
  }
View Full Code Here

Examples of org.araneaframework.core.AraneaRuntimeException

    HttpServletRequest request = ((ServletInputData) input).getRequest();
    HttpServletResponse response = ((ServletOutputData) output).getResponse();
   
   
    if (contentType == null) {
      throw new AraneaRuntimeException("Content type not set!");
    }
   
    response.setContentType(contentType);
   
    if (!cacheable) {
View Full Code Here

Examples of org.araneaframework.core.AraneaRuntimeException

    service._getService().action(MockUtil.getPath(), input, output);
    assertTrue(child.getActionCalled());
  }
 
  public void testActionThrowsException() throws Exception {
    final Exception exception = new AraneaRuntimeException("Another one bites the dust");
   
    service = new StandardCriticalExceptionHandlingFilterService();
    child = new MockEventfulBaseService() {
      public void action(Path path, InputData input, OutputData output) throws Exception {
        ((ServletOutputData)output).getResponse().getOutputStream().write(new byte[] {1});
View Full Code Here

Examples of org.araneaframework.core.AraneaRuntimeException

    childService._getService().action(path, input, output);
    requestTime = System.currentTimeMillis() - start;
    log.info(namespace + ": request took " + requestTime + " ms.");
   
    if (maxAllowedRequestTime!=-1 && requestTime>maxAllowedRequestTime) {
      throw new AraneaRuntimeException("Request processing took longer than allowed. Allowed: <"
            +maxAllowedRequestTime+"ms Real: "+requestTime+"ms");
    }
  }
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.