/* * @(#)file BerException.java * @(#)author Sun Microsystems, Inc. * @(#)version 4.12 * @(#)date 06/05/03 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * */ package com.sun.jmx.snmp; /** * Exception thrown when a BER encoding/decoding error occurs. * *

This API is a Sun Microsystems internal API and is subject * to change without notice.

* @version 4.12 12/19/03 * @author Sun Microsystems, Inc * * @since 1.5 */ public class BerException extends Exception { public static final int BAD_VERSION=1; private int errorType= 0; public BerException() { errorType= 0; } public BerException(int x) { errorType= x; } public boolean isInvalidSnmpVersion() { if (errorType == BAD_VERSION) return true; else return false; } }