# ivyforms/0.8/backend/src/Common/Exceptions/QueryExecutionException.php

The Innovative Form Builder – IvyForms, version 0.8. 40 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Common/Exceptions/QueryExecutionException.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.8/raw/backend/src/Common/Exceptions/QueryExecutionException.php
- Modified: 2026-01-13T11:11:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Common/Exceptions/QueryExecutionException.php#L10-L20`.

```php
<?php

/**
 * @copyright © Melograno Venture Studio. All rights reserved.
 * @licence   See LICENCE.md for license details.
 */

namespace IvyForms\Common\Exceptions;

// phpcs:disable PSR1.Files.SideEffects
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

use Exception;

/**
 * Class QueryExecutionException
 *
 * @package IvyForms\Common\Exceptions
 */
class QueryExecutionException extends Exception
{
    /**
     * QueryExecutionException constructor.
     *
     * @param string         $message
     * @param int            $code
     * @param Exception|null $previous
     */
    public function __construct($message = 'Query Execution Error', $code = 0, Exception $previous = null)
    {
        if ($previous) {
            $message .= ' ' . $previous->getMessage();
        }

        parent::__construct($message, $code, $previous);
    }
}

```
