Class PcapNativeException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class PcapNativeException
    extends java.lang.Exception
    Since:
    pcap4j 0.9.1
    Author:
    Kaito Yamada
    See Also:
    Serialized Form
    • Method Summary

      Modifier and Type Method Description
      java.lang.Integer getReturnCode()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PcapNativeException

        public PcapNativeException()
      • PcapNativeException

        public PcapNativeException​(java.lang.String message)
        Parameters:
        message - message
      • PcapNativeException

        public PcapNativeException​(java.lang.String message,
                                   java.lang.Integer returnCode)
        Parameters:
        message - message
        returnCode - returnCode
      • PcapNativeException

        public PcapNativeException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Parameters:
        message - message
        cause - cause
      • PcapNativeException

        public PcapNativeException​(java.lang.Throwable cause)
        Parameters:
        cause - cause
    • Method Detail

      • getReturnCode

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