All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.epsilon.eol.exceptions.EolRedefinedVariableException Maven / Gradle / Ivy

The newest version!
/*********************************************************************
 * Copyright (c) 2020 The University of York.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.epsilon.eol.exceptions;

import org.eclipse.epsilon.common.module.ModuleElement;

/**
 * 
 * @author Sina Madani
 * @since 1.6
 */
public class EolRedefinedVariableException extends EolRuntimeException {

	private final String variableName;

	public EolRedefinedVariableException(String variableName, ModuleElement ast) {
		super("Variable '" + variableName + "' is already defined!", ast);
		this.variableName = variableName;
	}

	public String getVariableName() {
		return variableName;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy