PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
← All changes | backend/src/Common/Exceptions/QueryExecutionException.php +34 -0 0.6.1 → 1.5.1 View file →
@@ -1,0 +1,34 @@
1 +<?php
2 +
3 +/**
4 + * @copyright © Melograno Venture Studio. All rights reserved.
5 + * @licence See LICENCE.md for license details.
6 + */
7 +
8 +namespace IvyForms\Common\Exceptions;
9 +
10 +use Exception;
11 +
12 +/**
13 + * Class QueryExecutionException
14 + *
15 + * @package IvyForms\Common\Exceptions
16 + */
17 +class QueryExecutionException extends Exception
18 +{
19 + /**
20 + * QueryExecutionException constructor.
21 + *
22 + * @param string $message
23 + * @param int $code
24 + * @param Exception|null $previous
25 + */
26 + public function __construct($message = 'Query Execution Error', $code = 0, ?Exception $previous = null)
27 + {
28 + if ($previous) {
29 + $message .= ' ' . $previous->getMessage();
30 + }
31 +
32 + parent::__construct($message, $code, $previous);
33 + }
34 +}