Use from_descriptor instead of from_xml to make ErrorDescriptor