01: package hotsax.html.sax;
02:
03: class Utility {
04:
05: private static final String errorMsg[] = {
06: "Error: Unmatched end-of-comment punctuation.",
07: "Error: Unmatched start-of-comment punctuation.",
08: "Error: Unclosed string.", "Error: Illegal character." };
09:
10: public static final int E_ENDCOMMENT = 0;
11: public static final int E_STARTCOMMENT = 1;
12: public static final int E_UNCLOSEDSTR = 2;
13: public static final int E_UNMATCHED = 3;
14:
15: public static void error(int code) {
16: System.out.println(errorMsg[code]);
17: }
18: }
|