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

io.github.laskowski.shell.error.DefaultErrorHandler Maven / Gradle / Ivy

Go to download

Library to launch .bat and .sh scripts of your choice with different configurations. Allows you to read tasks and services output from terminal

The newest version!
package io.github.laskowski.shell.error;

import io.github.laskowski.shell.exceptions.ErrorDetectedException;
import io.github.laskowski.shell.exceptions.ShellTaskFailedException;
import io.github.laskowski.shell.task.ShellTask;

public class DefaultErrorHandler implements ErrorHandler {
    private ShellTask shellTask;

    public DefaultErrorHandler(ShellTask shellTask) {
        this.shellTask = shellTask;
    }

    @Override
    public boolean handle(ErrorDetectedException errorDetectionException) {
        throw new ShellTaskFailedException(shellTask, errorDetectionException);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy