Throw exception for circular dependencies