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

org.hudsonci.plugins.jna.PosixException Maven / Gradle / Ivy

The newest version!
package org.hudsonci.plugins.jna;

import org.jruby.ext.posix.POSIX.ERRORS;

/**
 * Indicates an error during POSIX API call.
 *
 * @author Kohsuke Kawaguchi
 */
public class PosixException extends RuntimeException {
    private final ERRORS errors;

    public PosixException(String message, ERRORS errors) {
        super(message);
        this.errors = errors;
    }

    public ERRORS getErrorCode() {
        return errors;
    }

    @Override
    public String toString() {
        return super.toString()+" "+errors;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy