blob: ffc436a06e16e28d6985a117f5ef9778233652d1 [file] [log] [blame]
package org.eclipse.jem.internal.proxy.initParser;
/*******************************************************************************
* Copyright (c) 2001, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
* $RCSfile: EvaluationException.java,v $
* $Revision: 1.3 $ $Date: 2005/06/16 17:46:14 $
*/
import java.lang.reflect.InvocationTargetException;
/**
* This is an InitializationStringEvaluationException, but
* in addition, the exception that it wrappers is what should be
* returned. This means it was a valid exception, parsing had
* gone fine, but it was an evaluation that occured. This is
* distinguished from the straight InitializationStringEvaluationException,
* which means some error during parsing and evaluation.
*
* Note: InvocationTargetExceptions will be unwrappered to the true exception.
*/
public class EvaluationException extends InitializationStringEvaluationException {
/**
* Comment for <code>serialVersionUID</code>
*
* @since 1.1.0
*/
private static final long serialVersionUID = -6997239021885310986L;
/**
* Constructor for ReturnableException.
* @param exc
*/
public EvaluationException(Throwable exc) {
super(exc instanceof InvocationTargetException ? ((InvocationTargetException) exc).getTargetException() : exc);
}
}