‪TYPO3CMS  ‪main
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 {
28  public static function ‪sqlError(string $sql): ‪StatementException
29  {
30  return new self($sql, 1471504820);
31  }
32 
36  public static function ‪syntaxError(string $message, \‪Exception $previous = null): ‪StatementException
37  {
38  return new self('[SQL Error] ' . $message, 1471504821, $previous);
39  }
40 
44  public static function ‪semanticError(string $message, \‪Exception $previous = null): ‪StatementException
45  {
46  return new self('[Semantic Error] ' . $message, 1471504822, $previous);
47  }
48 }
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException
Definition: StatementException.php:24
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\syntaxError
‪static syntaxError(string $message, \Exception $previous=null)
Definition: StatementException.php:36
‪TYPO3\CMS\Core\Exception
Definition: Exception.php:21
‪TYPO3\CMS\Core\Database\Schema\Exception
Definition: DefaultTcaSchemaTablePositionException.php:18
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\sqlError
‪static sqlError(string $sql)
Definition: StatementException.php:28
‪TYPO3\CMS\Core\Database\Schema\Exception\StatementException\semanticError
‪static semanticError(string $message, \Exception $previous=null)
Definition: StatementException.php:44