next up previous contents
Next: Multiple Return Values. Up: Language Binding Previous: Start of Message Buffer.   Contents

Error Codes.

Unlike the standard C and Fortran interfaces, the mpiJava interfaces to MPI calls do not return explicit error codes. The Java exception mechanism will be used to report errors. The exception mechanism is very widely used by Java libraries. It is inconvenient to use up the single return value of a Java function with an error code. (Java doesn't allow function arguments to be passed by reference, so returning multiple values tends to be more clumsy than in other languages.)

Bryan Carpenter 2004-06-09