Apama 10.7.2 | Connecting Apama Applications to External Components | Working with IAF Plug-ins | Transport Plug-in Development in Java | The transport plug-in development specification for Java | Transport exceptions
 
Transport exceptions
TransportException is the exception class that should be thrown by a transport plug-in whenever the IAF calls one of its methods and an error prevents the method from successfully completing — for example, a message that cannot be sent on to an external sink in sendTransportEvent, or a serious problem that prevents the plug-in from initializing when start is called.
A TransportException object always has an associated message, which is a String explaining the problem (this may include information about another exception that caused the TransportException to be thrown). There is also a code field that specifies the kind of error that occurred; the possible codes are defined as constants in the TransportException class.
TransportException defines a number of constructors, to make it easy to set up the exception's information quickly in different situations.
See the TransportException class in the API Reference for Java (Javadoc) for more information on these constants and constructors.