Clover Coverage Report
Coverage timestamp: Fri May 24 2013 13:47:27 UTC
../../../../../../img/srcFileCovDistChart5.png 87% of files have more coverage
2   63   2   1
0   14   1   2
2     1  
1    
 
  ElementCheckException       Line # 32 2 2 50% 0.5
 
No Tests
 
1    /* This file is part of the project "Hilbert II" - http://www.qedeq.org
2    *
3    * Copyright 2000-2013, Michael Meyling <mime@qedeq.org>.
4    *
5    * "Hilbert II" is free software; you can redistribute
6    * it and/or modify it under the terms of the GNU General Public
7    * License as published by the Free Software Foundation; either
8    * version 2 of the License, or (at your option) any later version.
9    *
10    * This program is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    * GNU General Public License for more details.
14    */
15   
16    package org.qedeq.kernel.bo.logic.wf;
17   
18    import org.qedeq.kernel.bo.logic.common.LogicalCheckException;
19    import org.qedeq.kernel.se.base.list.Element;
20    import org.qedeq.kernel.se.common.ModuleContext;
21   
22    /**
23    * This is an exception for logical errors within a QEDEQ module.
24    * This exception is reserved for basic violation of the logical language.
25    * For example:
26    * An element is not an atom but should be one, an atom has <code>null</code>
27    * content or an element list was expected but is not there, an element list
28    * has an <code>null</code> operator or an <code>null</code> entry.
29    *
30    * @author Michael Meyling
31    */
 
32    public class ElementCheckException extends LogicalCheckException {
33   
34    /**
35    * Constructs an exception.
36    *
37    * @param errorCode ErrorCode of this message.
38    * @param message What is the problem.
39    * @param element Problematic formula.
40    * @param context Error location. Not necessarily pointing to
41    * <code>element</code>.
42    * @param referenceContext Reference location.
43    */
 
44  0 toggle public ElementCheckException(final int errorCode, final String message, final Element element,
45    final ModuleContext context, final ModuleContext referenceContext) {
46  0 super(errorCode, message, element, context, referenceContext);
47    }
48   
49    /**
50    * Constructs an exception.
51    *
52    * @param errorCode ErrorCode of this message.
53    * @param message What is the problem.
54    * @param element Problematic formula.
55    * @param context Error location. Not necessarily pointing to
56    * <code>element</code>.
57    */
 
58  27 toggle public ElementCheckException(final int errorCode, final String message,
59    final Element element, final ModuleContext context) {
60  27 super(errorCode, message, element, context);
61    }
62   
63    }