1 17 18 package org.apache.tomcat.jni; 19 20 25 26 public class Error extends Exception { 27 28 31 private int error; 32 33 36 private String description; 37 38 44 private Error(int error, String description) 45 { 46 super(description); 47 this.error = error; 48 this.description = description; 49 } 50 51 56 public int getError() 57 { 58 return error; 59 } 60 61 66 public String getDescription() 67 { 68 return description; 69 } 70 71 79 public static native int osError(); 80 81 87 public static native int netosError(); 88 89 94 public static native String strerror(int statcode); 95 96 } 97 | Popular Tags |