class_SqlException.php
Go to the documentation of this file.00001 <?php
00024 class SqlException extends DatabaseException {
00032 public function __construct (array $msgArray, $code) {
00033
00034 $message = sprintf("[%s:%d] SQL error detected. Message from database: <span class=\"exception_reason\">%s</span>, code: <span class=\"exception_reason\">%s</span>.",
00035 $msgArray[0]->__toString(),
00036 $this->getLine(),
00037 $msgArray[1],
00038 $this->getHexCode($msgArray[2])
00039 );
00040
00041
00042 parent::__construct($message, $code);
00043 }
00044 }
00045
00046
00047 ?>