Converts a string to an enumerated error.
a string, e.g. `org.freedesktop.fwupd.VersionNewer`
enumerated value