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

play.exceptions.JavaExecutionException Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
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());
    } 
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy