public void sendAndWaitForResponseOrThrow(Nonza request) throws E, NoResponseException,
                    NotConnectedException, InterruptedException, SmackWrappedException {
        sendAndWaitForResponse(request);
        switch (state) {
        case Failure:
            throwException();
            break;
        default:
            // Success, do nothing
        }
    }
public void sendAndWaitForResponseOrThrow ( Nonza request ) throws E , NoResponseException , NotConnectedException , InterruptedException , SmackWrappedException { sendAndWaitForResponse ( request ) ; switch ( state ) { case Failure : throwException ( ) ; break ; default : } }
Send the given plain stream element and wait for a response.

@param request the plain stream element to send.
@throws E if an failure was reported.
@throws NoResponseException if no response was received.
@throws NotConnectedException if the connection is not connected.
@throws InterruptedException if the connection is interrupted.
@throws SmackWrappedException in case of a wrapped exception;