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

org.hidetake.groovy.ssh.session.execution.SudoException.groovy Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
package org.hidetake.groovy.ssh.session.execution

import groovy.transform.CompileStatic
import org.hidetake.groovy.ssh.core.Remote

/**
 * An exception class thrown if sudo authentication failed.
 *
 * @author Hidetake Iwata
 */
@CompileStatic
class SudoException extends RuntimeException {

    final Remote remote

    def SudoException(Remote remote, String message) {
        super("Failed sudo authentication on $remote: $message")
        this.remote = remote
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy