private function getExceptionClass($error)
    {
        $errors = [
            'PAUSED' => QueuePausedResponseException::class
        ];
        $exceptionClass = ResponseException::class;
        list($errorCode) = explode(" ", $error);
        if (!empty($errorCode) && isset($errors[$errorCode])) {
            $exceptionClass = $errors[$errorCode];
        }
        return $exceptionClass;
    }