1 29 30 31 package snmp; 32 33 34 40 41 public class SNMPRequestException extends SNMPException 42 { 43 44 public static final int NO_ERROR = 0; 45 public static final int VALUE_TOO_BIG = 1; 46 public static final int VALUE_NOT_AVAILABLE = 2; 47 public static final int BAD_VALUE = 3; 48 public static final int VALUE_READ_ONLY = 4; 49 public static final int FAILED = 5; 50 51 public int errorIndex = 0; 52 public int errorStatus = 0; 53 54 55 56 59 60 public SNMPRequestException(int errorIndex, int errorStatus) 61 { 62 super(); 63 64 this.errorIndex = errorIndex; 65 this.errorStatus = errorStatus; 66 } 67 68 69 70 73 74 public SNMPRequestException(String message, int errorIndex, int errorStatus) 75 { 76 super(message); 77 78 this.errorIndex = errorIndex; 79 this.errorStatus = errorStatus; 80 } 81 82 } | Popular Tags |