Ameliore la gestion d'erreur

This commit is contained in:
Rodolphe Quiedeville 2007-01-29 10:32:52 +00:00
parent b6d23a2953
commit 95b7dc3d49

View File

@ -222,7 +222,7 @@ class Product
} }
else else
{ {
// Produit existe deja // Le produit existe deja
$this->_setErrNo("Create",257); $this->_setErrNo("Create",257);
} }
} }
@ -257,11 +257,15 @@ class Product
return -1; return -1;
} }
/**
\brief Positionne le numero d'erreur
\param func Nom de la fonction
\param num Numero de l'erreur
*/
function _setErrNo($func, $num) function _setErrNo($func, $num)
{ {
$this->errno = $num; $this->errno = $num;
dolibarr_syslog("Product::".$func." ERRNO (".$this->errno.")"); dolibarr_syslog("Product::".$func." - ".get_class($this) ." ERRNO (".$this->errno.")");
} }
/** /**