Class ExceptionUDT

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExceptionReceiveUDT, ExceptionSendUDT

public class ExceptionUDT extends SocketException
The Class ExceptionUDT. Wraps all native UDT exceptions and more.
See Also:
  • Field Details

    • errorUDT

      @Native private final ErrorUDT errorUDT
      The error udt. Keeps error description for this exception. Use this enum in switch/case to fine tune exception processing.
    • socketID

      @Native private final int socketID
      The socket id. Keeps socketID of the socket that produced this exception. Can possibly contain '0' when particular method can not determine socketID that produced the exception.
  • Constructor Details

    • ExceptionUDT

      @Native protected ExceptionUDT(int socketID, int errorCode, String comment)
      Instantiates a new exception udt for native UDT::Exception. This exception is generated in the underlying UDT method.
      Parameters:
      socketID - the socket id
      errorCode - the error code
      comment - the comment
    • ExceptionUDT

      @Native protected ExceptionUDT(int socketID, ErrorUDT error, String comment)
      Instantiates a new exception udt for synthetic JNI wrapper exception. This exception is generated in the JNI glue code itself.
      Parameters:
      socketID - the socket id
      error - the error
      comment - the comment
  • Method Details

    • getError

      public ErrorUDT getError()
    • getSocketID

      public int getSocketID()