46 if ( $message ===
null ) {
48 $message =
"A connection error occured. \n" .
50 "Function: $fname\n" .
51 "Error: $errno $error\n";
53 $message =
"A database query error has occurred. Did you forget to run " .
54 "your application's database schema updater after upgrading? \n" .
56 "Function: $fname\n" .
57 "Error: $errno $error\n";
61 parent::__construct(
$db, $message );
70class_alias( DBQueryError::class,
'DBQueryError' );