Class AFTIPCErrInfo

java.lang.Object
org.newsclub.net.unix.tipc.AFTIPCErrInfo
All Implemented Interfaces:
Serializable

public final class AFTIPCErrInfo extends Object implements Serializable
The TIPC-specific error info response that may be included as ancillary data.
Author:
Christian Kohlschütter
See Also:
  • Constructor Details

    • AFTIPCErrInfo

      public AFTIPCErrInfo(AFTIPCErrInfo.ErrorCode errorCode, int dataLength)
      Creates a new instance.
      Parameters:
      errorCode - The error code.
      dataLength - The length of the returned data.
  • Method Details

    • getErrorCode

      public AFTIPCErrInfo.ErrorCode getErrorCode()
      Returns the error code.
      Returns:
      The error code.
    • getDataLength

      public int getDataLength()
      The length of the corresponding data.
      Returns:
      The length in bytes.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object