public class

SnmpTooBigException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.sun.jmx.snmp.SnmpTooBigException

Class Overview

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.

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

Summary

Public Constructors
SnmpTooBigException()
Builds an SnmpTooBigException with varBindCount set to 0.
SnmpTooBigException(int n)
Builds an SnmpTooBigException with varBindCount set to the specified value.
Public Methods
int getVarBindCount()
Returns the number of SnmpVarBind successfully encoded before the exception was thrown.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public SnmpTooBigException ()

Builds an SnmpTooBigException with varBindCount set to 0.

public SnmpTooBigException (int n)

Builds an SnmpTooBigException with varBindCount set to the specified value.

Parameters
n The varBindCount value.

Public Methods

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).