‪TYPO3CMS  10.4
StatementException.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 {
30  public static function ‪sqlError(string $sql): ‪StatementException
31  {
32  return new self($sql, 1471504820);
33  }
34 
41  public static function ‪syntaxError(string $message, \‪Exception $previous = null): ‪StatementException
42  {
43  return new self('[SQL Error] ' . $message, 1471504821, $previous);
44  }
45 
52  public static function ‪semanticalError(string $message, \‪Exception $previous = null): ‪StatementException
53  {
54  return new self('[Semantical Error] ' . $message, 1471504822, $previous);
55  }
56 }
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\semanticalError
‪static StatementException semanticalError(string $message, \Exception $previous=null)
Definition: StatementException.php:52
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException
Definition: StatementException.php:24
‪TYPO3\CMS\Core\Exception
Definition: Exception.php:22
‪TYPO3\CMS\Core\Database\Schema\Exception
Definition: StatementException.php:18
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\sqlError
‪static StatementException sqlError(string $sql)
Definition: StatementException.php:30
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\syntaxError
‪static StatementException syntaxError(string $message, \Exception $previous=null)
Definition: StatementException.php:41