com.sun.jaw.snmp.common
Class SnmpTooBigException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.sun.jaw.snmp.common.SnmpTooBigException
- public class SnmpTooBigException
- extends java.lang.Exception
The SnmpTooBigException
is used internally to signal
that the size of a pdu exceeds the packet size limitation.
You normally don't need to use this class except if you
decide to implement your own
SnmPduFactoryIf object.
The varBindCount
property contains the
number of SnmpVarBind
successfully encoded
before the the exception was thrown. Its value is 0
when this number is unknown.
- 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,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
varBindCount
protected int varBindCount
- The
varBindCount
.
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.
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).