NAME

catgen_err - generate error message

SYNOPSIS

#include <cat/gen.h>

void catgen_err(const char *func, int code, const char *fmt, ...);

DESCRIPTION

This function is a wrapper to caterr_error() used to generate errors. An error is an error message of type CAT_ERROR.

func is the name of the issuer of the warning message, and is usually specified as a dot-separated list of modules and function names, for example ``mymodule.myfunction''

code is the error that the function raising the error intends to return to its caller.

The fmt string and any other arguments make up the error message and behave as described for sprintf().

NOTES

The catgen_error function calls:

  caterr_verror(NULL, func, CAT_ERROR, code, fmt, ...);

SEE ALSO

cat, caterr, catgen

caterr_error, caterr_verror, catgen_initdebug, catgen_err