Indicate that the serialization has ended with an error.
This function consumes error.
error
a `GdkContentSerializer`
a `GError`