package net.sf.jasperreports.engine.fill;

import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExpression;

public class JRExpressionEvalException extends JRException {
  private static final long serialVersionUID = 10200L;
  
  private JRExpression expression = null;
  
  public JRExpressionEvalException(JRExpression expr, Throwable throwable) {
    super("Error evaluating expression : \n\tSource text : " + expr.getText(), throwable);
    this.expression = expr;
  }
  
  public JRExpression getExpression() {
    return this.expression;
  }
}
