blob: 8bd971f99d1ec3390c1814efc971fd306490d99f [file] [log] [blame]
package org.eclipse.stem.core.scenario;
import org.eclipse.stem.core.common.Identifiable;
/*******************************************************************************
* Copyright (c) 2011 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
*******************************************************************************/
/**
* The exception is thrown when a problem is encountered initializing a scenario, i.e. building of the canonical graph. Typically
* the designer of the scenario did a mistake composing the scenario.
*
*/
public class ScenarioInitializationException extends Exception {
/**
* Exceptions are serializable because of RMI
*/
private static final long serialVersionUID = -4134573574005319250L;
private String mess;
private Exception originalException;
private Identifiable ident;
/**
* Constuctor.
*
* @param msgKey The key to use for the resource bundle. The bundle used is plugin-dependent, created using factory.
* @param msgParams Parameters for the message
* @param e Original exception
*/
public ScenarioInitializationException(String message, Identifiable id, Exception e) {
this.mess = message;
this.originalException = e;
this.ident = id;
}
public String getErrorMessage() {
return mess;
}
public Exception getOriginalException() {
return originalException;
}
public Identifiable getIdentifiable() {
return ident;
}
}