MPI_Win_set_errhandler

int MPI_Win_set_errhandler(MPI_Win, MPI_Errhandler);
Attaches a new error handler to a window.