io.github.laskowski.shell.exceptions.ShellTaskFailedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shell-commander Show documentation
Show all versions of shell-commander Show documentation
Library to launch .bat and .sh scripts of your choice with different configurations. Allows you to read tasks and services output from terminal
package io.github.laskowski.shell.exceptions;
import io.github.laskowski.shell.task.ShellTask;
public class ShellTaskFailedException extends RuntimeException {
public ShellTaskFailedException(ShellTask> shellTask, ErrorDetectedException error) {
super(String.format("Shell Task: [%s] failed!\nCause: %s", shellTask.getScript().getFile().getName(), error.getMessage()));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy