Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a new error category: not_found. It used to be in mismatch, but almost all errors...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 7 Aug 2005 14:05:45 +0000 (14:05 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 7 Aug 2005 14:05:45 +0000 (14:05 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1598 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/ex.h

index 54f8d0f..45225b2 100644 (file)
@@ -202,6 +202,7 @@ typedef enum {
   unknown_error=0,  /**< unknown error */
   arg_error,        /**< Invalid argument */
   mismatch_error,   /**< The provided ID does not match */
+  not_found_error,  /**< The searched element was not found */
   
   system_error,   /**< a syscall did fail */
   network_error,  /**< error while sending/receiving data */
@@ -209,7 +210,7 @@ typedef enum {
   thread_error    /**< error while [un]locking */
 } xbt_errcat_t;
 
-const char *xbt_errcat_name(xbt_error_t errcode);
+const char *xbt_errcat_name(xbt_errcat_t errcode);
 
 /** @brief Structure describing an exception */
 typedef struct {