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