public static IQ error(IQ iq, String errorMessage, Logger logger) {
        logger.error(errorMessage);
        return error(iq, errorMessage);
    }
public static IQ error(IQ iq, String errorMessage, Logger logger) {
        logger.error(errorMessage);
        return error(iq, errorMessage);
    }
public static IQ error ( IQ iq , String errorMessage , Logger logger ) { logger . error ( errorMessage ) ; return error ( iq , errorMessage ) ; }
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