Skip to content

Commit

Permalink
Import PH7InvalidArgumentException namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jul 9, 2017
1 parent d4a4369 commit e80d6e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _protected/framework/Mvc/Model/Engine/Util/Various.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,14 @@ public static function checkModelTable($sTable)
* Set an Error Message with an Exception then exit() function.
*
* @param string $sTable The table value.
*
* @return integer 1 (with exit function).
* @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException Explanatory message.
*
* @throws PH7InvalidArgumentException Explanatory message.
*/
public static function launchErr($sTable)
{
throw new \PH7\Framework\Error\CException\PH7InvalidArgumentException('Bad data table: "' . $sTable . '"!');
throw new PH7InvalidArgumentException('Bad data table: "' . $sTable . '"!');
exit(1);
}
}

0 comments on commit e80d6e3

Please sign in to comment.