replace Exception on GeneralException
This commit is contained in:
@ -43,7 +43,7 @@ class MySQLiStatement extends DbStatement
|
||||
$row = $this->result->fetch_array(MYSQLI_BOTH);
|
||||
break;
|
||||
default:
|
||||
throw new Exception('Invalid fetch mode "' . $style . '" specified');
|
||||
throw new GeneralException('Invalid fetch mode "' . $style . '" specified');
|
||||
}
|
||||
return $row;
|
||||
}
|
||||
@ -92,7 +92,7 @@ class MySQLiStatement extends DbStatement
|
||||
}
|
||||
if ($result === false) {
|
||||
$message = $mysqli->error . "\nQuery: \"" . $sql . '"';
|
||||
throw new Exception($message, $mysqli->errno);
|
||||
throw new GeneralException($message, $mysqli->errno);
|
||||
}
|
||||
if ($result instanceof MySQLi_Result) {
|
||||
$this->result = $result;
|
||||
|
Reference in New Issue
Block a user