| 1 | /* This file is part of the project "Hilbert II" - http://www.qedeq.org |
| 2 | * |
| 3 | * Copyright 2000-2014, 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 | * |
| 25 | * A checked formula has an syntactical error. That is for example: |
| 26 | * Mixture of free and bound occurrence of a subject variable, |
| 27 | * element list that is has a subject variable operator but has not |
| 28 | * exactly one element that is an atom. |
| 29 | * |
| 30 | * @author Michael Meyling |
| 31 | */ |
| 32 | public class FormulaCheckException 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 | public FormulaCheckException(final int errorCode, final String message, final Element element, |
| 45 | final ModuleContext context, final ModuleContext referenceContext) { |
| 46 | 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 | public FormulaCheckException(final int errorCode, final String message, |
| 59 | final Element element, final ModuleContext context) { |
| 60 | super(errorCode, message, element, context); |
| 61 | } |
| 62 | |
| 63 | } |