Package br.com.caelum.vraptor

Examples of br.com.caelum.vraptor.VRaptorException


      }
    }
    if(choosen!=null){
      return choosen;
   
    throw new VRaptorException("Type "+type+" was not found");
  }
View Full Code Here


    Object current = root;
    for (int i = 1; i < paths.length; i++) {
      try {
        current = navigate(current, paths[i]);
      } catch (Exception e) {
        throw new VRaptorException("Unable to evaluate expression " + path, e);
      }
      if (current == null) {
        return "";
      }
    }
View Full Code Here

      for (int i = 0; i < position; i++) {
        it.next();
      }
      return it.next();
    }
    throw new VRaptorException("Unable to access position of a" + current.getClass().getName() + ".");
  }
View Full Code Here

      Object array = arrays.get(setter);
      Object newArray = removeNullsFromArray(array);
      try {
        setter.set(newArray);
      } catch (InvocationTargetException e) {
        throw new VRaptorException(e.getCause());
      } catch (Exception e) {
        throw new IllegalArgumentException(e);
      }
    }
    arrays.clear();
View Full Code Here

    Iterator<Route> matches = Iterators.filter(routes.iterator(), Filters.canHandle(type, method));
    if (matches.hasNext()) {
      try {
        return matches.next().urlFor(type, method, params);
      } catch (Exception e) {
        throw new VRaptorException("The selected route is invalid for redirection: " + type.getName() + "."
            + method.getName(), e);
      }
    }
    throw new RouteNotFoundException("The selected route is invalid for redirection: " + type.getName() + "."
        + method.getName());
View Full Code Here

            target.getClass());
   
    Type[] types = listSetter.getGenericParameterTypes();
    Type type = types[0];
    if (!(type instanceof ParameterizedType)) {
      throw new VRaptorException("Vraptor does not support non-generic collection at "
          + listSetter.getName());
    }
    return type;
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.VRaptorException

Copyright © 2018 www.massapicom. 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.