#include <cat/cat.h>
caterr_func *caterr_setfunc(caterr_func *func);
The supplied callback must have the type:
typedef void caterr_func(int major_code, int retval, const char *message);
This function should be called only during initialization.
This function may be called before cat_init().