diff --git a/DataStorage/Database/Schema/Exception/TableException.php b/DataStorage/Database/Schema/Exception/TableException.php index 62e75f80f..6151c5108 100644 --- a/DataStorage/Database/Schema/Exception/TableException.php +++ b/DataStorage/Database/Schema/Exception/TableException.php @@ -43,6 +43,16 @@ class TableException extends \PDOException 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 + */ public static function findTable(string $message) : string { $pos1 = strpos($message, '\'');