padre-master/org.eclipse.epsilon.common.dt/src/org/eclipse/epsilon/common/dt/extensions/IllegalExtensionException.java
/*******************************************************************************
 * Copyright (c) 2011 The University of York.
 * 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:
 *     Antonio Garcia-Dominguez - initial API and implementation
 ******************************************************************************/
package org.eclipse.epsilon.common.dt.extensions;

import org.eclipse.epsilon.common.parse.AST;
import org.eclipse.epsilon.eol.exceptions.EolRuntimeException;

/**
 * Exception for illegal extensions for EUnit listeners.
 *
 * @author Antonio Garcia-Dominguez
 * @version 1.0
 */
public class IllegalExtensionException extends EolRuntimeException {

	private static final long serialVersionUID = 1L;
	private Throwable cause;

	public IllegalExtensionException(String message) {
		super(message);
	}

	public IllegalExtensionException(String message, AST ast) {
		super(message, ast);
	}

	public IllegalExtensionException(Throwable cause) {
		this.setStackTrace(cause.getStackTrace());
		this.cause = cause;
	}

	public Throwable getCause() {
		return this.cause;
	}

}
