Clover icon

Coverage Report

  1. Project Clover database Wed Nov 13 2024 18:27:33 GMT
  2. Package com.stevesoft.pat

File RegSyntaxError.java

 

Coverage histogram

../../../img/srcFileCovDistChart0.png
59% of files have more coverage

Code metrics

2
4
3
1
40
20
4
1
1.33
3
1.33

Classes

Class Line # Actions
RegSyntaxError 19 4 4
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    //
2    // This software is now distributed according to
3    // the Lesser Gnu Public License. Please see
4    // http://www.gnu.org/copyleft/lesser.txt for
5    // the details.
6    // -- Happy Computing!
7    //
8    package com.stevesoft.pat;
9   
10    /**
11    * When enabled, this class is thrown instead of the normal RegSyntax. Thus,
12    * enabling of this class will make your debugging easier -- but if you leave it
13    * on and forget to catch RegSyntaxError a user-supplied pattern could generate
14    * a RegSyntaxError that will kill your application.
15    *
16    * I strongly recommend turning this flag on, however, as I think it is more
17    * likely to help than to hurt your programming efforts.
18    */
 
19    public class RegSyntaxError extends Error
20    {
21    public static boolean RegSyntaxErrorEnabled = false;
22   
 
23  0 toggle public RegSyntaxError()
24    {
25    }
26   
 
27  0 toggle public RegSyntaxError(String s)
28    {
29  0 super(s);
30    }
31   
 
32  0 toggle final static void endItAll(String s) throws RegSyntax
33    {
34  0 if (RegSyntaxErrorEnabled)
35    {
36  0 throw new RegSyntaxError(s);
37    }
38  0 throw new RegSyntax(s);
39    }
40    }