java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jnetpcap.PcapHeaderException
org.jnetpcap.PcapHeaderException.OutOfRangeException
- All Implemented Interfaces:
Serializable
- Enclosing class:
PcapHeaderException
Reports an out of range error for a value of native Pcap header field.
Provides adds additional debugging information about the
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jnetpcap.PcapHeaderException
PcapHeaderException.OutOfRangeException
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
A mutable flag that if set to true, then an extra list of per ABI possibilities for the out of range value field. -
Constructor Summary
ConstructorDescriptionOutOfRangeException
(org.jnetpcap.internal.PcapHeaderABI abi, int value) Instantiates a new out of range exception. -
Method Summary
Modifier and TypeMethodDescriptiongetAbi()
Gets the abi.Gets the message.Gets the method name.Gets the possiblities.int
getValue()
Gets the value.setMethodName
(String methodName) Sets the method name.void
setPossibilities
(List<String> possibleValues) Sets the possibilities.setPossiblities
(List<String> possibleValues) Sets the possiblities.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INCLUDE_POSSIBILITIES
public static boolean INCLUDE_POSSIBILITIESA mutable flag that if set to true, then an extra list of per ABI possibilities for the out of range value field. This may be helpful in debugging and selecting the correct ABI which will have the plainly visible in range value. In range values should appear in front and are typically between 64 and 1528 bytes but may be as high as 9000 for jumbo frames.
-
-
Constructor Details
-
OutOfRangeException
public OutOfRangeException(org.jnetpcap.internal.PcapHeaderABI abi, int value) Instantiates a new out of range exception.- Parameters:
abi
- the abivalue
- the value
-
-
Method Details
-
getPossiblities
Gets the possiblities.- Returns:
- the possibleValues
-
getValue
public int getValue()Gets the value.- Returns:
- the value
-
setPossibilities
Sets the possibilities.- Parameters:
possibleValues
- the new possibilities
-
setPossiblities
Sets the possiblities.- Parameters:
possibleValues
- the possibleValues to set- Returns:
- the out of range exception
-
getAbi
Gets the abi.- Returns:
- the abi
-
getMessage
Gets the message.- Overrides:
getMessage
in classThrowable
- Returns:
- the message
- See Also:
-
getMethodName
Gets the method name.- Returns:
- the methodName
-
setMethodName
Sets the method name.- Parameters:
methodName
- the methodName to set- Returns:
- the out of range exception
-