
org.hudsonci.plugins.jna.PosixException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jna-native-support-plugin Show documentation
Show all versions of jna-native-support-plugin Show documentation
Plugin provides support for Native Access using JNA library.
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