public static IQ error(IQ iq, String errorMessage) {
        return XMPPUtils.createErrorResponse(iq, errorMessage,
                Condition.bad_request, Type.modify);
    }
public static IQ error(IQ iq, String errorMessage) {
        return XMPPUtils.createErrorResponse(iq, errorMessage,
                Condition.bad_request, Type.modify);
    }
public static IQ error ( IQ iq , String errorMessage ) { return XMPPUtils . createErrorResponse ( iq , errorMessage , Condition . bad_request , Type . modify ) ; }
Logs the error and returns an IQ error response

@param iq
@param errorMessage
@param logger
@return
Logs the error and returns an IQ error response