blob: 5ca845b58bf8a092b40f59ed71081681d3eb1c92 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2006 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.core.tests.session;
import java.io.PrintStream;
import java.io.PrintWriter;
public class RemoteTestException extends Exception {
/**
* All serializable objects should have a stable serialVersionUID
*/
private static final long serialVersionUID = 1L;
private String stackText;
private String message;
public RemoteTestException(String message, String stackText) {
this.message = message;
this.stackText = stackText;
}
public void printStackTrace(PrintWriter stream) {
stream.print(stackText);
}
public void printStackTrace(PrintStream stream) {
stream.print(stackText);
}
public String getMessage() {
return message;
}
}