Module org.jnetpcap
Package org.jnetpcap

Class PcapHeaderException.OutOfRangeException

All Implemented Interfaces:
Serializable
Enclosing class:
PcapHeaderException

public static class PcapHeaderException.OutOfRangeException extends PcapHeaderException
Reports an out of range error for a value of native Pcap header field. Provides adds additional debugging information about the
See Also:
  • Field Details

    • INCLUDE_POSSIBILITIES

      public static boolean INCLUDE_POSSIBILITIES
      A 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 abi
      value - the value
  • Method Details

    • getPossiblities

      public List<String> getPossiblities()
      Gets the possiblities.
      Returns:
      the possibleValues
    • getValue

      public int getValue()
      Gets the value.
      Returns:
      the value
    • setPossibilities

      public void setPossibilities(List<String> possibleValues)
      Sets the possibilities.
      Parameters:
      possibleValues - the new possibilities
    • setPossiblities

      public PcapHeaderException.OutOfRangeException setPossiblities(List<String> possibleValues)
      Sets the possiblities.
      Parameters:
      possibleValues - the possibleValues to set
      Returns:
      the out of range exception
    • getAbi

      public String getAbi()
      Gets the abi.
      Returns:
      the abi
    • getMessage

      public String getMessage()
      Gets the message.
      Overrides:
      getMessage in class Throwable
      Returns:
      the message
      See Also:
    • getMethodName

      public String getMethodName()
      Gets the method name.
      Returns:
      the methodName
    • setMethodName

      public PcapHeaderException.OutOfRangeException setMethodName(String methodName)
      Sets the method name.
      Parameters:
      methodName - the methodName to set
      Returns:
      the out of range exception