00001 #ifndef MOC_ERROR_H_ 00002 #define MOC_ERROR_H_ 00003 00004 00005 /** 00006 * \addtogroup environment_error 00007 * 00008 * This section describes how errors are handled. 00009 * 00010 * Every function should return an integer if possible. This integer should be 00011 * MOC_SUCCESS if the operation teminated successfully otherwise an error-code 00012 * telling the reason of the error is returned. 00013 * 00014 * For more information see Chapter 7.2 of the MPI 1.3 Standard. 00015 **/ 00016 //@{ 00017 00018 00019 00020 /** 00021 * @name MPI_ERROR-CLASSES 00022 * 00023 * Error-classes defined by the MPI-standard. Every error-code returned by a 00024 * MOC-function should belong to an error-class or be an error-class itself. 00025 * This enables implementation-independend error-handling. 00026 * 00027 * Value-range: 0 = MOC_SUCCESS < MOC_ERR_... <= MOC_ERR_LASTCODE 00028 **/ 00029 //@{ 00030 #define MOC_SUCCESS 0 /**< No error */ 00031 #define MOC_ERR_BUFFER 1000 /**< Invalid buffer pointer */ 00032 #define MOC_ERR_COUNT 2000 /**< Invalid count argument */ 00033 #define MOC_ERR_TYPE 3000 /**< Invalid datatype argument */ 00034 #define MOC_ERR_TAG 4000 /**< Invalid tag argument */ 00035 #define MOC_ERR_COMM 5000 /**< Invalid communicator */ 00036 #define MOC_ERR_RANK 6000 /**< Invalid rank */ 00037 #define MOC_ERR_REQUEST 7000 /**< Invalid request (handle) */ 00038 #define MOC_ERR_ROOT 8000 /**< Invalid root */ 00039 #define MOC_ERR_GROUP 9000 /**< Invalid group */ 00040 #define MOC_ERR_OP 10000 /**< Invalid operation */ 00041 #define MOC_ERR_TOPOLOGY 11000 /**< Invalid topology */ 00042 #define MOC_ERR_DIMS 12000 /**< Invalid dimension argument */ 00043 #define MOC_ERR_ARG 13000 /**< Invalid argument of some other kind */ 00044 #define MOC_ERR_UNKNOWN 14000 /**< Unknown error */ 00045 #define MOC_ERR_TRUNCATE 15000 /**< Message truncated on receive */ 00046 #define MOC_ERR_OTHER 16000 /**< Known error not in this list */ 00047 #define MOC_ERR_INTERN 17000 /**< Internal MOC (implementation) error */ 00048 #define MOC_ERR_IN_STATUS 18000 /**< Error code is in status */ 00049 #define MOC_ERR_PENDING 19000 /**< Pending request */ 00050 #define MOC_ERR_LASTCODE 20000 /**< Last error code */ 00051 //@} 00052 00053 00054 00055 /** 00056 * @name MOC-Error-Codes 00057 * 00058 * Implementation dependent Error-Codes. 00059 **/ 00060 //@{ 00061 #define MOC_ERR_NOT_IMPLEMENTED 17001 /**< Function not implemented */ 00062 #define MOC_ERR_BUFFER_OVERFLOW 17002 /**< Internal Buffer Overflow */ 00063 #define MOC_ERR_NO_MEMORY 17003 /**< Insufficient Memory */ 00064 #define MOC_ERR_NO_BUFFER 17004 /**< Insufficient Buffer-Space */ 00065 #define MOC_ERR_MESSAGE_EXHAUSTED 17005 /**< No further messages possible */ 00066 #define MOC_ERR_BAD_ALIGNMENT 16001 /**< Base-Adress of Buffer isn't 16-byte aligned */ 00067 #define MOC_ERR_BAD_SIZE 16002 /**< Bad Size (probably no multiple of 16) */ 00068 //@} 00069 00070 00071 //@} 00072 #endif /*MOC_ERROR_H_*/
1.5.6