Package mpi
Class MPIException
java.lang.Object
java.lang.Throwable
java.lang.Exception
mpi.MPIException
- All Implemented Interfaces:
Serializable
Signals that an MPI exception of some sort has occurred.
The Java binding of the MPI operation MPI_Error_string is the
method getMessage, which is inherited from the class Exception.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMPIException(int code, int clazz, String message) MPIException(String message) Creates an exception.MPIException(Throwable cause) Creates an exception: -
Method Summary
Modifier and TypeMethodDescriptionintGets the MPI error class.intGets the MPI error code.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MPIException
-
MPIException
Creates an exception.- Parameters:
message- message associated to the exception
-
MPIException
Creates an exception:- Parameters:
cause- cause associated to the exception
-
-
Method Details
-
getErrorCode
public int getErrorCode()Gets the MPI error code.- Returns:
- error code
-
getErrorClass
public int getErrorClass()Gets the MPI error class.- Returns:
- error class
-