padre-master/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/exceptions/EolRuntimeExceptionReference.java
/*******************************************************************************
 * Copyright (c) 2008 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:
 *     Dimitrios Kolovos - initial API and implementation
 ******************************************************************************/
package org.eclipse.epsilon.eol.exceptions;

import org.eclipse.epsilon.common.parse.AST;

public class EolRuntimeExceptionReference extends EolRuntimeException {
	
	protected EolRuntimeException exception;
	
	public EolRuntimeExceptionReference(EolRuntimeException original) {
		this.exception = original;
	}
	
	public EolRuntimeException getException() {
		return exception;
	}
	
	public void setException(EolRuntimeException exception) {
		this.exception = exception;
	}
	
	@Override
	public AST getAst() {
		// TODO Auto-generated method stub
		return exception.getAst();
	}

	@Override
	public int getColumn() {
		// TODO Auto-generated method stub
		return exception.getColumn();
	}

	@Override
	public int getLine() {
		// TODO Auto-generated method stub
		return exception.getLine();
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return exception.getMessage();
	}

	@Override
	public String getReason() {
		// TODO Auto-generated method stub
		return exception.getReason();
	}

	@Override
	public void setAst(AST ast) {
		// TODO Auto-generated method stub
		exception.setAst(ast);
	}

	@Override
	public void setReason(String reason) {
		// TODO Auto-generated method stub
		exception.setReason(reason);
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return exception.toString();
	}

}
