throw new VarResolverException(e, "Session object ''{0}'' or context object ''SvlContext.{0}'' could not be converted to type ''{1}''.", name, c); throw new VarResolverException( "Session object ''{0}'' or context object ''SvlContext.{0}'' not found.", name); return t;
/** * Constructor. * * @param cause The cause of this exception. * @param message The {@link MessageFormat}-style message. * @param args Optional {@link MessageFormat}-style arguments. */ public VarResolverException(Throwable cause, String message, Object... args) { super(cause, getMessage(cause, message, null), args); }
throw new VarResolverException(e, "Session object ''{0}'' or context object ''SvlContext.{0}'' could not be converted to type ''{1}''.", name, c); throw new VarResolverException( "Session object ''{0}'' or context object ''SvlContext.{0}'' not found.", name); return t;
/** * Constructor. * * @param cause The cause of this exception. * @param message The {@link MessageFormat}-style message. * @param args Optional {@link MessageFormat}-style arguments. */ public VarResolverException(Throwable cause, String message, Object... args) { super(cause, getMessage(cause, message, null), args); }
throw new VarResolverException(e, "Session object ''{0}'' or context object ''SvlContext.{0}'' could not be converted to type ''{1}''.", name, c); throw new VarResolverException( "Session object ''{0}'' or context object ''SvlContext.{0}'' not found.", name); return t;
/** * Constructor. * * @param cause The cause of this exception. * @param message The {@link MessageFormat}-style message. * @param args Optional {@link MessageFormat}-style arguments. */ public VarResolverException(Throwable cause, String message, Object... args) { super(cause, getMessage(cause, message, null), args); }
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving collection."); throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving map.");
/** * Constructor. * * @param vars The Var classes used for resolving string variables. * @param contextObjects Read-only context objects. */ public VarResolverContext(Class<? extends Var>[] vars, Map<String,Object> contextObjects) { this.vars = Arrays.copyOf(vars, vars.length); Map<String,Var> m = new ConcurrentSkipListMap<>(); for (Class<?> c : vars) { if (! isParentClass(Var.class, c)) throw new VarResolverException("Invalid variable class. Must extend from Var"); Var v = newInstance(Var.class, c); m.put(v.getName(), v); } this.varMap = unmodifiableMap(m); this.contextObjects = immutableMap(contextObjects); }
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving collection."); throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving map.");
/** * Constructor. * * @param vars The Var classes used for resolving string variables. * @param contextObjects Read-only context objects. */ public VarResolverContext(Class<? extends Var>[] vars, Map<String,Object> contextObjects) { this.vars = Arrays.copyOf(vars, vars.length); Map<String,Var> m = new ConcurrentSkipListMap<>(); for (Class<?> c : vars) { if (! isParentClass(Var.class, c)) throw new VarResolverException("Invalid variable class. Must extend from Var"); Var v = newInstance(Var.class, c); m.put(v.getName(), v); } this.varMap = unmodifiableMap(m); this.contextObjects = immutableMap(contextObjects); }
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving collection."); throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving map.");
/** * Constructor. * * @param vars The Var classes used for resolving string variables. * @param contextObjects Read-only context objects. */ public VarResolverContext(Class<? extends Var>[] vars, Map<String,Object> contextObjects) { this.vars = Arrays.copyOf(vars, vars.length); Map<String,Var> m = new ConcurrentSkipListMap<>(); for (Class<?> c : vars) { if (! isParentClass(Var.class, c)) throw new VarResolverException("Invalid variable class. Must extend from Var"); Var v = newInstance(Var.class, c); m.put(v.getName(), v); } this.varMap = unmodifiableMap(m); this.contextObjects = immutableMap(contextObjects); }
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", var, s);
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", var, s);
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", var, s);
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", varType, s);
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", varType, s);
throw e; } catch (Exception e) { throw new VarResolverException(e, "Problem occurred resolving variable ''{0}'' in string ''{1}''", varType, s);