Function

GLibpropagate_prefixed_error

Declaration

void
g_propagate_prefixed_error (
  GError** dest,
  GError* src,
  const gchar* format,
  ...
)

Description

If dest is NULL, free src; otherwise, moves src into dest. dest must be NULL. After the move, add a prefix as with g_prefix_error().

Available since:2.16

Parameters

dest GError
 

Error return location.

 The data is owned by the caller of the function.
src GError
 

Error to move into the return location.

 The data is owned by the caller of the function.
format const gchar*
 

Printf()-style format string.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
... none
 

Arguments to format.