play.exceptions.JavaExecutionException Maven / Gradle / Ivy
package play.exceptions;
import play.classloading.ApplicationClasses.ApplicationClass;
/**
* An exception occured during Java execution
*/
public class JavaExecutionException extends JavaException {
public JavaExecutionException(ApplicationClass applicationClass, Integer lineNumber, Throwable e) {
super(applicationClass, lineNumber, e.getMessage(), e);
}
public JavaExecutionException(String action, Throwable e) {
super(null, null, e.getMessage(), e);
}
public JavaExecutionException(Throwable e) {
super(null, null, e.getMessage(), e);
}
@Override
public String getErrorTitle() {
return String.format("Execution exception");
}
@Override
public String getErrorDescription() {
return String.format("%s occured : %s", getCause().getClass().getSimpleName(), getMessage());
}
}