Clover Coverage Report
Coverage timestamp: Sat Sep 18 2010 04:09:52 UTC
../../../../../../img/srcFileCovDistChart5.png 77% of files have more coverage
2   62   2   1
0   13   1   2
2     1  
1    
 
  ElementCheckException       Line # 31 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-2010, 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.base.list.Element;
19    import org.qedeq.kernel.common.ModuleContext;
20   
21    /**
22    * This is an exception for logical errors within a QEDEQ module.
23    * This exception is reserved for basic violation of the logical language.
24    * For example:
25    * An element is not an atom but should be one, an atom has <code>null</code>
26    * content or an element list was expected but is not there, an element list
27    * has an <code>null</code> operator or an <code>null</code> entry.
28    *
29    * @author Michael Meyling
30    */
 
31    public class ElementCheckException extends LogicalCheckException {
32   
33    /**
34    * Constructs an exception.
35    *
36    * @param errorCode ErrorCode of this message.
37    * @param message What is the problem.
38    * @param element Problematic formula.
39    * @param context Error location. Not necessarily pointing to
40    * <code>element</code>.
41    * @param referenceContext Reference location.
42    */
 
43  0 toggle public ElementCheckException(final int errorCode, final String message, final Element element,
44    final ModuleContext context, final ModuleContext referenceContext) {
45  0 super(errorCode, message, element, context, referenceContext);
46    }
47   
48    /**
49    * Constructs an exception.
50    *
51    * @param errorCode ErrorCode of this message.
52    * @param message What is the problem.
53    * @param element Problematic formula.
54    * @param context Error location. Not necessarily pointing to
55    * <code>element</code>.
56    */
 
57  27 toggle public ElementCheckException(final int errorCode, final String message,
58    final Element element, final ModuleContext context) {
59  27 super(errorCode, message, element, context);
60    }
61   
62    }