/* $Id: CheckException.java,v 1.5 2006/10/20 20:23:03 m31 Exp $
 *
 * This file is part of the project "Hilbert II" - http://www.qedeq.org
 *
 * Copyright 2000-2006,  Michael Meyling <mime@qedeq.org>.
 *
 * "Hilbert II" is free software; you can redistribute
 * it and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

package org.qedeq.kernel.bo.logic;

import org.qedeq.kernel.base.elli.Element;



/**
 * This is an exception for semantic checks.
 *
 * @version $Revision: 1.5 $
 * @author  Michael Meyling
 */
public class CheckException extends Exception {

    /** Necessary for serialization. */
    private static final long serialVersionUID = 1L;

    /**
     * This element should have been an atom.
     */
    private final Element element;


    /**
     * Constructs an exception.
     *
     * @param  message      what is the problem
     * @param  element         problematic line
     */
    public CheckException(final String message, final Element element) {
        super(message);
        this.element = element;
    }

    /**
     * Get the element.
     *
     * @return  element, that should have been a symbol
     */
    public final Element getElement() {
        return this.element;
    }


}
