Class PcapNativeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.pcap4j.core.PcapNativeException
All Implemented Interfaces:
Serializable

public final class PcapNativeException extends Exception
Since:
pcap4j 0.9.1
See Also:
  • Field Details

  • Constructor Details

    • PcapNativeException

      public PcapNativeException()
    • PcapNativeException

      public PcapNativeException(String message)
      Parameters:
      message - message
    • PcapNativeException

      public PcapNativeException(String message, Integer returnCode)
      Parameters:
      message - message
      returnCode - returnCode
    • PcapNativeException

      public PcapNativeException(String message, Throwable cause)
      Parameters:
      message - message
      cause - cause
    • PcapNativeException

      public PcapNativeException(Throwable cause)
      Parameters:
      cause - cause
  • Method Details

    • getReturnCode

      public Integer getReturnCode()
      Returns:
      the return code if the native function which caused this exception returned it; otherwise null.
    • setReturnCode

      void setReturnCode(Integer returnCode)