`throw new CacheException(__d('cake_dev', 'Invalid group %s', $group));` would be better.