add PubSub errors for structure and createStructure()