src/Core/CoreHelper.php
public static function CheckNullResponseAndThrowException($response)
    {
        if (!$response) {
            $messageToWrite = 'Response Null or Empty';
            $backTrace =  debug_backtrace();
            $callerFileName = $backTrace[0]['file'];
            $callerFileLineNumber = $backTrace[0]['line'];
            $callerFunctionName = $backTrace[0]['function'];
            $logMessage = implode(" - ", array(date('Y-m-d H:i:s'),
                                               $callerFileName,
                                               $callerFileLineNumber,
                                               $callerFunctionName,
                                               $messageToWrite));
            throw new IdsException($logMessage);
        }
    }
public static function CheckNullResponseAndThrowException($response)
    {
        if (!$response) {
            $messageToWrite = 'Response Null or Empty';
            $backTrace =  debug_backtrace();
            $callerFileName = $backTrace[0]['file'];
            $callerFileLineNumber = $backTrace[0]['line'];
            $callerFunctionName = $backTrace[0]['function'];
            $logMessage = implode(" - ", array(date('Y-m-d H:i:s'),
                                               $callerFileName,
                                               $callerFileLineNumber,
                                               $callerFunctionName,
                                               $messageToWrite));
            throw new IdsException($logMessage);
        }
    }
TO DO: Rewrite Late - Hao
Checks whether the reponse is null or empty and throws communication exception.
@param string response The response from the query service.