X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FRegSyntax.java;h=635dc4c01a39f3ea339d67d034000731671881a8;hb=4b2392caa53f1de3400e7916d1d9c7b815d446f4;hp=1a51d9e8959c0b20f518f6aadab443229ec0b5c8;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/RegSyntax.java b/src/com/stevesoft/pat/RegSyntax.java index 1a51d9e..635dc4c 100755 --- a/src/com/stevesoft/pat/RegSyntax.java +++ b/src/com/stevesoft/pat/RegSyntax.java @@ -1,24 +1,30 @@ -// -// This software is now distributed according to -// the Lesser Gnu Public License. Please see -// http://www.gnu.org/copyleft/lesser.txt for -// the details. -// -- Happy Computing! -// -package com.stevesoft.pat; - -/* - Shareware: package pat - Copyright 2001, Steven R. Brandt -*/ -/** -This type of syntax error is thrown whenever a syntax error - is encountered in the pattern. It may not be caught directly, as - it is not in the throws clause of any method. To detect it, catch - Throwable, and use instanceof to see if it is a RegSyntax. */ -public class RegSyntax extends Exception { - RegSyntax() {} - RegSyntax(String msg) { - super(msg); - } -}; +// +// This software is now distributed according to +// the Lesser Gnu Public License. Please see +// http://www.gnu.org/copyleft/lesser.txt for +// the details. +// -- Happy Computing! +// +package com.stevesoft.pat; + +/* + Shareware: package pat + Copyright 2001, Steven R. Brandt + */ +/** + * This type of syntax error is thrown whenever a syntax error is encountered in + * the pattern. It may not be caught directly, as it is not in the throws clause + * of any method. To detect it, catch Throwable, and use instanceof to see if it + * is a RegSyntax. + */ +public class RegSyntax extends Exception +{ + RegSyntax() + { + } + + RegSyntax(String msg) + { + super(msg); + } +};