/* Copyright @ 2004, The Institute for Genomic Research (TIGR). All rights reserved. */ /*************************************************************************** * Author: Jianwei(Jerry) Li. * Name: ExpressionException (Version 1.0) * Date: Created: 10/15/2004 and modified: 11/04/2004 * Descp: A Java class that catchs exception when an expression is illegal. ***************************************************************************/ package org.tigr.util.formula; public class ExpressionException extends RuntimeException { private String gError; private int c; private int a; private MathExpression formula; public ExpressionException(MathExpression mathExpression, String error){ gError = error; formula = mathExpression; } public MathExpression getSource() { return formula; } public int getErrorLocation() { return c; } public int getErrorLineLocation() { return a; } public String getError() { return gError; } }