blob: cef6aa3371197412f1fe217e95f586eee3751316 [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;
import junit.framework.AssertionFailedError;
public class RemoteAssertionFailedError extends AssertionFailedError {
/**
* All serializable objects should have a stable serialVersionUID
*/
private static final long serialVersionUID = 1L;
private Object stackText;
private String message;
public RemoteAssertionFailedError(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;
}
}