An exception might be thrown if the client could not send the command. Errors that occur on the server during execution of the command generally are returned in the response object. Exceptions thrown by this method are usually the result of rare low-level communications problems or a problem exists with the command such that it cannot be sent. Callers of this method should always check the returned {@link CommandResponse#isSuccessful()}flag to see if the command was actually successfully processed.
@param command the command to send @return the response of the command as returned by the server @throws Exception if failed to send the command @throws IllegalStateException if this sender object has not been told to{@link #startSending() start sending commands}
|
|