ExceptionHandler
class ExceptionHandler extends ExceptionHandler (View source)
MySql database exception handler class.
Methods
void
handleStatementException(Exception $exception, string $sql, array $options = [])
Handles exceptions thrown during the preparation of statement objects.
from
ExceptionHandler
void
handleExecutionException(Exception $exception, StatementInterface $statement, array $arguments = [], array $options = [])
Handles exceptions thrown during execution of statement objects.
Details
void
handleStatementException(Exception $exception, string $sql, array $options = [])
Handles exceptions thrown during the preparation of statement objects.
void
handleExecutionException(Exception $exception, StatementInterface $statement, array $arguments = [], array $options = [])
Handles exceptions thrown during execution of statement objects.