Fwupd.error_from_string
Description: Reference for Fwupd.error_from_string

### Function

# Fwupderror_from_string

#### Declaration [src]

    FwupdError
    fwupd_error_from_string (
      const gchar* error
    )

#### Description [src]

Converts a string to an enumerated error.

Available since: | 0.7.0

#### Parameters

`error` | `const gchar*`
| A string, e.g. `org.freedesktop.fwupd.VersionNewer`
| The argument can be `NULL`.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `FwupdError`
| Enumerated value.