MPI_Comm_get_errhandler
int MPI_Comm_get_errhandler(MPI_Comm, MPI_Errhandler *);
Retrieves the error handler currently associated with a communicator.