home *** CD-ROM | disk | FTP | other *** search
- package allaire.util.template;
-
- public class ExpressionException extends TemplateException {
- private static final int ERR_BASE = 100;
- public static final int ERR_INVALID_TOKEN = 100;
- public static final int ERR_FUNCTION_NOT_FOUND = 101;
- public static final int ERR_MISSING_END_PAREN = 102;
- public static final int ERR_MISSING_COMMA = 103;
- public static final int ERR_DIVIDE_BY_ZERO = 104;
- public static final int ERR_TYPE_CONVERSION = 105;
-
- static {
- TemplateException.addError(100, "Invalid expression token");
- TemplateException.addError(101, "Function not found");
- TemplateException.addError(102, "Missing end parentheses");
- TemplateException.addError(103, "Missing comma in function call");
- TemplateException.addError(104, "Divide by zero");
- TemplateException.addError(105, "Invalid type conversion");
- }
-
- public ExpressionException(int var1, String var2) {
- super(var1, var2);
- }
- }
-