SqlExecuteException
The SqlExecuteException is thrown when an SQL execution error occurs. This exception helps handle errors related to query execution in the Sparkle package.
Namespace
php
use Sirmerdas\Sparkle\Exceptions\SqlExecuteException;Exception Usage
This exception is typically thrown when an SQL query fails to execute properly.
Example Usage
php
use Sirmerdas\Sparkle\Exceptions\SqlExecuteException;
try {
Sparkle::table('users')->get(['userid']); // userid column not exists
} catch (SqlExecuteException $e) {
echo "Error: " . $e->getMessage();
}