1 11 12 13 package com.sun.jmx.snmp; 14 15 16 17 18 19 29 30 public class BerException extends Exception { 31 32 public static final int BAD_VERSION=1; 33 34 private int errorType= 0; 35 36 public BerException() { 37 errorType= 0; 38 } 39 40 public BerException(int x) { 41 errorType= x; 42 } 43 44 public boolean isInvalidSnmpVersion() { 45 if (errorType == BAD_VERSION) 46 return true; 47 else 48 return false; 49 } 50 } 51 | Popular Tags |