setErrorLiteral

fnvoid setErrorLiteral(out glib.error.ErrorWrap err, glib.types.Quark domain, int code, string message)

Does nothing if err is null; if err is non-null, then *err must be null. A new #GError is created and assigned to *err. Unlike [glib.global.setError], message is not a printf()-style format string. Use this function if message contains text you don't have control over, that could include printf() escape sequences.

Parameters

erra return location for a #GError
domainerror domain
codeerror code
messageerror message