The constants MPI_ERRORS_ARE_FATAL, MPI_ERRORS_RETURN are available as MPI.ERRORS_ARE_FATAL, MPI.ERRORS_RETURN.
If the effective error handler is MPI_ERRORS_RETURN, the wrapper codes will throw appropriate Java exceptions (see section A.7.3).
For now, we omit a specification of Java interface for creating new MPI error handlers, because the detailed interface of the handler function depends on unstandardized features of the MPI implementation.
static void Comm.errorhandlerSet(Errhandler errhandler)
| errhandler | new MPI error handler for communicator |
static Errhandler Comm.errorhandlerGet()
| returns: | MPI error handler currently associated with communicator |