throw new CException('Collection name not specified for '.get_class($this));

Should work since by the time it searches for a collection name it is in dynamic mode.

Which collection name? If one is not supplied there is no real way to know which collection name to return