home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Java / CFJava.cab / CFJavaRuntime.cab / allaire / util / template / ExpressionException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-03-31  |  841 b   |  25 lines

  1. package allaire.util.template;
  2.  
  3. public class ExpressionException extends TemplateException {
  4.    private static final int ERR_BASE = 100;
  5.    public static final int ERR_INVALID_TOKEN = 100;
  6.    public static final int ERR_FUNCTION_NOT_FOUND = 101;
  7.    public static final int ERR_MISSING_END_PAREN = 102;
  8.    public static final int ERR_MISSING_COMMA = 103;
  9.    public static final int ERR_DIVIDE_BY_ZERO = 104;
  10.    public static final int ERR_TYPE_CONVERSION = 105;
  11.  
  12.    static {
  13.       TemplateException.addError(100, "Invalid expression token");
  14.       TemplateException.addError(101, "Function not found");
  15.       TemplateException.addError(102, "Missing end parentheses");
  16.       TemplateException.addError(103, "Missing comma in function call");
  17.       TemplateException.addError(104, "Divide by zero");
  18.       TemplateException.addError(105, "Invalid type conversion");
  19.    }
  20.  
  21.    public ExpressionException(int var1, String var2) {
  22.       super(var1, var2);
  23.    }
  24. }
  25.