
org.sikuli.script.SikuliException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sikulixapi Show documentation
Show all versions of sikulixapi Show documentation
... for visual testing and automation
/*
* Copyright (c) 2010-2016, Sikuli.org, sikulix.com
* Released under the MIT License.
*
*/
package org.sikuli.script;
/**
* INTERNAL USE
*/
public class SikuliException extends Exception {
protected String _name = "SikuliException";
public SikuliException(String msg) {
super(msg);
}
@Override
public String toString() {
String ret = _name + ": " + getMessage() + "\n";
for (StackTraceElement elm : getStackTrace()) {
ret += " Line " + elm.getLineNumber()
+ ", in file " + elm.getFileName() + "\n";
return ret;
}
ret += "Line ?, in File ?";
return ret;
}
public String toStringShort() {
return _name + ": " + getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy