X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FRegSyntaxError.java;h=1e56122190ef12f8185e03005f8d2ba70ff07eba;hb=506d60f0e188723ddc91c26824b41ac7034df3fe;hp=688c906cc802d417fec68a7ce91e67cdc699b62d;hpb=60f2d6c034560415fd0139c8bc7df0c19cae1186;p=jalview.git diff --git a/src/com/stevesoft/pat/RegSyntaxError.java b/src/com/stevesoft/pat/RegSyntaxError.java index 688c906..1e56122 100755 --- a/src/com/stevesoft/pat/RegSyntaxError.java +++ b/src/com/stevesoft/pat/RegSyntaxError.java @@ -1,42 +1,40 @@ -// -// 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; - -/** When enabled, this class is thrown instead of - the normal RegSyntax. Thus, enabling of this - class will make your debugging easier -- but - if you leave it on and forget to catch RegSyntaxError - a user-supplied pattern could generate a - RegSyntaxError that will kill your application. - - I strongly recommend turning this flag on, however, - as I think it is more likely to help than to hurt - your programming efforts. - */ -public class RegSyntaxError - extends Error -{ - public static boolean RegSyntaxErrorEnabled = false; - public RegSyntaxError() - {} - - public RegSyntaxError(String s) - { - super(s); - } - - final static void endItAll(String s) - throws RegSyntax - { - if (RegSyntaxErrorEnabled) - { - throw new RegSyntaxError(s); - } - throw new RegSyntax(s); - } -} +// +// 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; + +/** + * When enabled, this class is thrown instead of the normal RegSyntax. Thus, + * enabling of this class will make your debugging easier -- but if you leave it + * on and forget to catch RegSyntaxError a user-supplied pattern could generate + * a RegSyntaxError that will kill your application. + * + * I strongly recommend turning this flag on, however, as I think it is more + * likely to help than to hurt your programming efforts. + */ +public class RegSyntaxError extends Error +{ + public static boolean RegSyntaxErrorEnabled = false; + + public RegSyntaxError() + { + } + + public RegSyntaxError(String s) + { + super(s); + } + + final static void endItAll(String s) throws RegSyntax + { + if (RegSyntaxErrorEnabled) + { + throw new RegSyntaxError(s); + } + throw new RegSyntax(s); + } +}