barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Class ExceptionUDT

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.SocketException
                  extended by com.barchart.udt.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:
Serialized Form

Constructor Summary
protected ExceptionUDT(int socketID, ErrorUDT error, String comment)
          Instantiates a new exception udt for synthetic JNI wrapper exception.
protected ExceptionUDT(int socketID, int errorCode, String comment)
          Instantiates a new exception udt for native UDT::Exception.
 
Method Summary
 ErrorUDT getError()
           
 int getSocketID()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

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 Detail

getError

public ErrorUDT getError()

getSocketID

public int getSocketID()

barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.