@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 1) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 0 args.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 1) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 0 args.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 2) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 1 and only 1 string arg.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 2) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 1 and only 1 string arg.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
public void addImutableSql(String id, ObjectMapping mapping, String sqlStatement) { try { this.templates.put(id, new TemplateData(mapping, sqlStatement.getBytes("UTF-8"))) ; } catch (UnsupportedEncodingException e) { throw new TemplateInitException(e.getMessage(), id, 1, 1) ; } }
public void addImutableSql(String id, String ormName, String sqlStatement) { try { this.templates.put(id, new TemplateData(ormName, sqlStatement.getBytes("UTF-8"))) ; } catch (UnsupportedEncodingException e) { throw new TemplateInitException(e.getMessage(), id, 1, 1) ; } }
@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 2) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 1 and only 1 string arg.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
@Override public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException { super.init(rs, context, node); if (node.jjtGetNumChildren() != 1) { throw new TemplateInitException("Invalid args for #" + getName() + ". Expected 0 args.", context.getCurrentTemplateName(), node.getColumn(), node.getLine()); } }
throw new TemplateInitException(msg, e, templateName, getColumn(), getLine());
throw new TemplateInitException(badArgsErrorMsg, context.getCurrentTemplateName(), 0, 0);
throw new TemplateInitException(badArgsErrorMsg, context.getCurrentTemplateName(), 0, 0);
throw new TemplateInitException(msg, e, template.getName(), getColumn(), getLine());
if (argCount == 0) throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), childNode.getType() != ParserTreeConstants.JJTREFERENCE ) throw new TemplateInitException( "#" + getName() + "() argument must be a string literal or reference", context.getCurrentTemplateName(),
if (argCount == 0) throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), childNode.getType() != ParserTreeConstants.JJTREFERENCE ) throw new TemplateInitException( "#" + getName() + "() argument must be a string literal or reference", context.getCurrentTemplateName(),
if (argCount == 0) throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), throw new TemplateInitException( "#" + getName() + "() requires exactly one argument", context.getCurrentTemplateName(), childNode.getType() != ParserTreeConstants.JJTREFERENCE ) throw new TemplateInitException( "#" + getName() + "() argument must be a string literal or reference", context.getCurrentTemplateName(),
throw new TemplateInitException(buildErrorMsg(node, i), context.getCurrentTemplateName(), 0, 0);
throw new TemplateInitException(die.getMessage(), (ParseException) die.getWrappedThrowable(), die.getTemplateName(),
throw new TemplateInitException(die.getMessage(), (ParseException) die.getWrappedThrowable(), die.getTemplateName(), throw new TemplateInitException(die.getMessage(), (ParseException) die.getWrappedThrowable(), die.getTemplateName(),
throw new TemplateInitException(die.getMessage(), (ParseException) die.getCause(), die.getTemplateName(), throw new TemplateInitException(die.getMessage(), (ParseException) die.getCause(), die.getTemplateName(),
throw new TemplateInitException(msg, context.getCurrentTemplateName(), 0, 0); throw new TemplateInitException("Invalid arg #" + n + " in VM #" + macroName, context.getCurrentTemplateName(), 0, 0);