/branches/v1.7-croissant/jrest/lib/Bdd.php |
---|
90,7 → 90,8 |
} |
} catch (PDOException $e) { |
$message = "Fichier : {$e->getFile()} \nLigne : {$e->getLine()} \nMessage : {$e->getMessage()} \nRequête : $requete"; |
throw new Exception($message); |
$code = E_USER_ERROR; |
throw new Exception($message, $code); |
} |
return $resultat; |
} |
/branches/v1.7-croissant/jrest/lib/Bdd2.php |
---|
90,7 → 90,8 |
} |
} catch (PDOException $e) { |
$message = "Fichier : {$e->getFile()} \nLigne : {$e->getLine()} \nMessage : {$e->getMessage()} \nRequête : $requete"; |
throw new Exception($message); |
$code = E_USER_ERROR; |
throw new Exception($message, $code); |
} |
return $resultat; |
} |