javax.management.snmp
Class SnmpTooBigException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.management.snmp.SnmpTooBigException
All Implemented Interfaces:
Serializable

Deprecated. Use package com.sun.management.snmp in preference to classes in this package. This class may be removed in a future version of Java DMK.

public class SnmpTooBigException
extends Exception

Is used internally to signal that the size of a PDU exceeds the packet size limitation.

You will not usually need to use this class, except if you decide to implement your own SnmPduFactory object.

The varBindCount property contains the number of SnmpVarBind successfully encoded before the exception was thrown. Its value is 0 when this number is unknown.

Version:
1.1 07/23/98
Author:
Sun Microsystems, Inc
See Also:
Serialized Form

Constructor Summary
SnmpTooBigException()
          Deprecated. Builds an SnmpTooBigException with varBindCount set to 0.
SnmpTooBigException(int n)
          Deprecated. Builds an SnmpTooBigException with varBindCount set to the specified value.
 
Method Summary
 int getVarBindCount()
          Deprecated. Returns the number of SnmpVarBind successfully encoded before the exception was thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpTooBigException

public SnmpTooBigException()
Deprecated. 
Builds an SnmpTooBigException with varBindCount set to 0.


SnmpTooBigException

public SnmpTooBigException(int n)
Deprecated. 
Builds an SnmpTooBigException with varBindCount set to the specified value.

Parameters:
n - The varBindCount value.
Method Detail

getVarBindCount

public int getVarBindCount()
Deprecated. 
Returns the number of SnmpVarBind successfully encoded before the exception was thrown.

Returns:
A positive integer (0 means the number is unknown).

FCS Release
jdmk-5_1-b34.1 2005.02.10_16:46:09_MET

Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.