FileDocCategorySizeDatePackage
SnmpTooBigException.javaAPI DocJava SE 6 API1833Tue Jun 10 00:22:06 BST 2008com.sun.jmx.snmp

SnmpTooBigException

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 {@link com.sun.jmx.snmp.SnmpPduFactory 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.

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

version
1.1 07/23/98
author
Sun Microsystems, Inc

Fields Summary
private int
varBindCount
The varBindCount.
Constructors Summary
public SnmpTooBigException()
Builds an SnmpTooBigException with varBindCount set to 0.

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

param
n The varBindCount value.

    varBindCount = n ;
  
Methods Summary
public intgetVarBindCount()
Returns the number of SnmpVarBind successfully encoded before the exception was thrown.

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

    return varBindCount ;