Package com.barchart.udt
Class ExceptionUDT
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.SocketException
com.barchart.udt.ExceptionUDT
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExceptionReceiveUDT,ExceptionSendUDT
The Class ExceptionUDT. Wraps all native UDT exceptions and more.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExceptionUDT(int socketID, int errorCode, String comment) Instantiates a new exception udt for native UDT::Exception.protectedExceptionUDT(int socketID, ErrorUDT error, String comment) Instantiates a new exception udt for synthetic JNI wrapper exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
errorUDT
The error udt. Keeps error description for this exception. Use this enum in switch/case to fine tune exception processing. -
socketID
The socket id. Keeps socketID of the socket that produced this exception. Can possibly contain '0' when particular method can not determinesocketIDthat produced the exception.
-
-
Constructor Details
-
ExceptionUDT
Instantiates a new exception udt for native UDT::Exception. This exception is generated in the underlying UDT method.- Parameters:
socketID- the socket iderrorCode- the error codecomment- the comment
-
ExceptionUDT
Instantiates a new exception udt for synthetic JNI wrapper exception. This exception is generated in the JNI glue code itself.- Parameters:
socketID- the socket iderror- the errorcomment- the comment
-
-
Method Details
-
getError
-
getSocketID
public int getSocketID()
-