mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Adding comment
This commit is contained in:
parent
321b0ae48d
commit
3f28193dd5
|
|
@ -43,6 +43,16 @@ class TableException extends \PDOException
|
||||||
parent::__construct('The table "' . $message . '" doesn\'t exist.', $code, $previous);
|
parent::__construct('The table "' . $message . '" doesn\'t exist.', $code, $previous);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get table name from exception.
|
||||||
|
*
|
||||||
|
* @param string $message Exception message
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
public static function findTable(string $message) : string
|
public static function findTable(string $message) : string
|
||||||
{
|
{
|
||||||
$pos1 = strpos($message, '\'');
|
$pos1 = strpos($message, '\'');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user