blob: 05403bcbb75e1fd766e7ec8fdf6884fe3023025c [file] [log] [blame]
/**
*
*/
package net.sf.taverna.t2.workbench.ui.workflowview;
import static javax.swing.JOptionPane.ERROR_MESSAGE;
import static javax.swing.JOptionPane.showMessageDialog;
/**
* @author alanrw
*/
public class ShowExceptionRunnable implements Runnable {
Exception e;
private final String message;
public ShowExceptionRunnable(String message, Exception e) {
this.message = message;
this.e = e;
}
@Override
public void run() {
showMessageDialog(null, message + ": " + e.getMessage(),
"Service addition problem", ERROR_MESSAGE);
}
}