void fann_error(struct fann_error * errdat, unsigned int errno, ...);
This will set the network's error to correspond to errno. The variable arguments depend (both in type and quantity) on errno. Possible errno values are defined in fann_errno.h.
This function appears in FANN >= 1.1.0.