blob: 03e2b65c72ffa94e8721a7263b4518a43bd6328a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2008 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
*******************************************************************************/
package org.eclipse.wst.validation.internal;
import org.eclipse.core.resources.IProject;
/**
* This internal error is used to signal that a project is now unavailable.
* <p>
* We could be in the middle of validating a large project, and the project could be closed.
* This error is used to "exit" the validation framework.
* <p>
* This is an error rather than a runtime exception, because some parts of Eclipse like to
* trap RuntimeExceptions and log them.
* @author karasiuk
*
*/
public class ProjectUnavailableError extends Error {
private IProject _project;
private static final long serialVersionUID = 200801281118L;
public ProjectUnavailableError(IProject project){
super();
_project = project;
}
public IProject getProject() {
return _project;
}
}