--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+\r
+/*\r
+ Shareware: package pat\r
+ <a href="copyright.html">Copyright 2001, Steven R. Brandt</a>\r
+*/\r
+/**\r
+This type of syntax error is thrown whenever a syntax error\r
+ is encountered in the pattern. It may not be caught directly, as\r
+ it is not in the throws clause of any method. To detect it, catch\r
+ Throwable, and use instanceof to see if it is a RegSyntax. */\r
+public class RegSyntax extends Exception {\r
+ RegSyntax() {}\r
+ RegSyntax(String msg) {\r
+ super(msg);\r
+ }\r
+};\r