File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\os\PosixException.java.html

1 package hudson.os;
2
3 import org.jruby.ext.posix.POSIX.ERRORS;
4
5 /**
6 * Indicates an error during POSIX API call.
7 *
8 * @author Kohsuke Kawaguchi
9 */
10 public class PosixException extends RuntimeException {
11 private final ERRORS errors;
12
13 public PosixException(String message, ERRORS errors) {
14 super(message);
15 this.errors = errors;
16 }
17
18 public ERRORS getErrorCode() {
19 return errors;
20 }
21
22 @Override
23 public String toString() {
24 return super.toString()+" "+errors;
25 }
26 }
27