MPI_Errhandler_set
int MPI_Errhandler_set(MPI_Comm, MPI_Errhandler);
Associates a new error handler with a communicator.