blob: aedd89b5fc9ffff4f66ce270301e950c791e5b31 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-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 {
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;
}
}