[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Part of the Joomla Framework Database Package 4 * 5 * @copyright Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved. 6 * @license GNU General Public License version 2 or later; see LICENSE 7 */ 8 9 namespace Joomla\Database\Exception; 10 11 /** 12 * Exception class defining an error preparing the SQL statement for execution 13 * 14 * @since 2.0.0 15 */ 16 class PrepareStatementFailureException extends \RuntimeException 17 { 18 /** 19 * Construct the exception 20 * 21 * @param string $message The Exception message to throw. [optional] 22 * @param integer $code The Exception code. [optional] 23 * @param Exception $previous The previous exception used for the exception chaining. [optional] 24 * 25 * @since 2.0.0 26 */ 27 public function __construct($message = '', $code = 0, \Exception $previous = null) 28 { 29 // PDO uses strings for exception codes, PHP forces numeric codes, so "force" the string code to be used 30 parent::__construct($message, 0, $previous); 31 32 $this->code = $code; 33 } 34 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |