needed for applet search
[jalview.git] / src / com / stevesoft / pat / RegSyntax.java
diff --git a/src/com/stevesoft/pat/RegSyntax.java b/src/com/stevesoft/pat/RegSyntax.java
new file mode 100755 (executable)
index 0000000..1a51d9e
--- /dev/null
@@ -0,0 +1,24 @@
+//\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