Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_ERROR_HAS_LABEL(3)	    libmongoc	       MONGOC_ERROR_HAS_LABEL(3)

SYNOPSIS
	bool
	mongoc_error_has_label (const bson_t *reply, const char *label);

     Test  whether a reply from a failed operation includes a specific error la-
     bel.     See     Error	 Labels      for      details,	    and      see
     mongoc_client_session_start_transaction()	for  example  code  that  demon-
     strates their use.

PARAMETERS
     * reply: A non-NULL pointer to overwritable storage for a bson_t to contain
       the results.

     * label: The label to test for, such as "TransientTransactionError" or "Un-
       knownTransactionCommitResult".

RETURNS
     Returns true if reply contains the error label.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026	       MONGOC_ERROR_HAS_LABEL(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_error_has_label&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help