01: /*
02: * SExprParserException.java
03: *
04: * Copyright 1997 Massachusetts Institute of Technology.
05: * All Rights Reserved.
06: *
07: * Author: Ora Lassila
08: *
09: * $Id: SExprParserException.java,v 1.2 1998/01/22 13:09:10 bmahe Exp $
10: */
11:
12: package org.w3c.tools.sexpr;
13:
14: /**
15: * An exception class for syntax errors detected during s-expression parsing.
16: */
17: public class SExprParserException extends Exception {
18:
19: /**
20: * Initialize the exception with an explanatory message.
21: */
22: public SExprParserException(String explanation) {
23: super (explanation);
24: }
25:
26: /**
27: * Initialize the exception with a message about an illegal character.
28: */
29: public SExprParserException(char illegalChar) {
30: super ("Invalid character '" + illegalChar + "'");
31: }
32:
33: }
|