001 /*
002 * Copyright (c) 2005 Peter Palotas, Fredrik Johansson, Einar Pehrson,
003 * Sebastian Kekkonen, Lars Magnus Lång, Malin Johansson and Sofia Nilsson
004 *
005 * This file is part of
006 * CleanSheets Extension for Assertions
007 *
008 * CleanSheets Extension for Assertions is free software; you can
009 * redistribute it and/or modify it under the terms of the GNU General Public
010 * License as published by the Free Software Foundation; either version 2 of
011 * the License, or (at your option) any later version.
012 *
013 * CleanSheets Extension for Assertions is distributed in the hope that
014 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
015 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016 * See the GNU General Public License for more details.
017 *
018 * You should have received a copy of the GNU General Public License
019 * along with CleanSheets Extension for Assertions; if not, write to the
020 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
021 * Boston, MA 02111-1307 USA
022 */
023 package csheets.ext.assertion;
024
025 import csheets.core.formula.util.ExpressionVisitorException;
026
027 /**
028 * This Exception is thrown if you try to do calculations on intervals
029 * which contains forbidden values according to the choosen matematical
030 * operation. For example division by zero.
031 * @author Fredrik
032 */
033 public class MathException extends ExpressionVisitorException {
034
035 /** The serialVersionUID of the MathException.java */
036 private static final long serialVersionUID = -8774781783987699960L;
037
038 public MathException() {
039 super();
040 }
041
042 public MathException(String message) {
043 super(message);
044 }
045
046 public MathException(String message, Throwable cause) {
047 super(message, cause);
048 }
049
050 public MathException(Throwable cause) {
051 super(cause);
052 }
053 }