All Downloads are FREE. Search and download functionalities are using the official Maven repository.

holmos.webtest.exceptions.HolmosFailedError Maven / Gradle / Ivy

There is a newer version: 1.0.2u10
Show newest version
package holmos.webtest.exceptions;

import holmos.webtest.basetools.HolmosWindow;
import junit.framework.AssertionFailedError;

public class HolmosFailedError extends AssertionFailedError{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Exception e;
	public HolmosFailedError () {
		HolmosWindow.closeAllWindows();
	}
	public HolmosFailedError (String message) {
		super (message);
		HolmosWindow.closeAllWindows();
		dealExpection();
	}
	public HolmosFailedError(String message,Exception e){
		super(message);
		this.e=e;
		dealExpection();
	}
	private void dealExpection(){
		if(this.e!=null)
			this.e.printStackTrace();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy