public class UDPCommandRemovalException extends Exception
Thrown when a problem occurs whilst attempting to remove a UDPCommandListener.
Constructor and Description |
---|
UDPCommandRemovalException(String message,
int errorCode)
Constructs the UDPCommandRemovalException with the specified
message and error code.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code that was returned from the UDPAccessor to
indicate what the problem was.
|
String |
toString()
Returns a string that describes the exception, including the
message that details what happened and the error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public UDPCommandRemovalException(String message, int errorCode)
Constructs the UDPCommandRemovalException with the specified message and error code.
message
- A description of what caused the exception.errorCode
- The error code returned from the Transformer.public int getErrorCode()
Gets the error code that was returned from the UDPAccessor to indicate what the problem was.
If the error code is -1, then the attempt to remove the listener failed because it has already been removed.
Any other error codes are unexpected.
Please send bug reports and comments to Caplin support