Task #1044 - Implementation de Test
Replace in class exit by throw new Exception
This commit is contained in:
parent
518a9090d6
commit
54b6037ede
37 changed files with 95 additions and 104 deletions
|
|
@ -183,7 +183,7 @@ class Document_modele
|
|||
{
|
||||
echo "<H1>Error</H1>";
|
||||
$this->cn->rollback();
|
||||
exit;
|
||||
throw new Exception("Erreur".__FILE__.__LINE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -348,7 +348,7 @@ class Document_modele
|
|||
{
|
||||
echo "<H1>Error</H1>";
|
||||
$this->cn->rollback();
|
||||
exit;
|
||||
throw new Exception("Erreur".__FILE__.__LINE__);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue