looking at NodeTypeManagerInterface:.registerNodeTypes i think we should convert that into \PHPCR\NodeType\NodeTypeExistsException