PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8
GiveWP – Donation Plugin and Fundraising Platform v4.16.8
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / DonationForms / Exceptions / DonationFormFieldErrorsException.php
DonationFormFieldErrorsException.php
36 lines 704 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\DonationForms\Exceptions;
4
5 use Give\Framework\Exceptions\Contracts\LoggableException;
6 use Give\Framework\Exceptions\Traits\Loggable;
7 use Throwable;
8 use WP_Error;
9
10 class DonationFormFieldErrorsException extends \Exception implements LoggableException
11 {
12 use Loggable;
13
14 /**
15 * @var WP_Error
16 */
17 protected $error;
18
19 /**
20 * @since 3.0.0
21 */
22 public function __construct(WP_Error $error, Throwable $previous = null)
23 {
24 parent::__construct('Form field validation error', 0, $previous);
25 $this->error = $error;
26 }
27
28 /**
29 * @since 3.0.0
30 */
31 public function getError(): WP_Error
32 {
33 return $this->error;
34 }
35 }
36