Class |
Line # |
Actions |
|||
---|---|---|---|---|---|
RegSyntax | 20 | 1 | 2 |
1 | // | |
2 | // This software is now distributed according to | |
3 | // the Lesser Gnu Public License. Please see | |
4 | // http://www.gnu.org/copyleft/lesser.txt for | |
5 | // the details. | |
6 | // -- Happy Computing! | |
7 | // | |
8 | package com.stevesoft.pat; | |
9 | ||
10 | /* | |
11 | Shareware: package pat | |
12 | <a href="copyright.html">Copyright 2001, Steven R. Brandt</a> | |
13 | */ | |
14 | /** | |
15 | * This type of syntax error is thrown whenever a syntax error is encountered in | |
16 | * the pattern. It may not be caught directly, as it is not in the throws clause | |
17 | * of any method. To detect it, catch Throwable, and use instanceof to see if it | |
18 | * is a RegSyntax. | |
19 | */ | |
20 | public class RegSyntax extends Exception | |
21 | { | |
22 | 0 | RegSyntax() |
23 | { | |
24 | } | |
25 | ||
26 | 1 | RegSyntax(String msg) |
27 | { | |
28 | 1 | super(msg); |
29 | } | |
30 | }; |