com.sun.management.snmp
Class SnmpTooBigException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.management.snmp.SnmpTooBigException
All Implemented Interfaces:
Serializable

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.

Since:
Java DMK 5.1
See Also:
Serialized Form

Constructor Summary
SnmpTooBigException()
          Builds an SnmpTooBigException with varBindCount set to 0.
SnmpTooBigException(int n)
          Builds an SnmpTooBigException with varBindCount set to the specified value.
 
Method Summary
 int getVarBindCount()
          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()
Builds an SnmpTooBigException with varBindCount set to 0.


SnmpTooBigException

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

Parameters:
n - The varBindCount value.
Method Detail

getVarBindCount

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

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

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

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