PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
← All changes | includes/exceptions/request-exception.php +27 -10 1.0.2 → 3.6.6 View file →
@@ -1,10 +1,27 @@
1 -<?php
2 -
3 -
4 -namespace Jet_Form_Builder\Exceptions;
5 -
6 -
7 -class Request_Exception extends Handler_Exception {
8 -
9 -
10 -}
1 +<?php
2 +
3 +
4 +namespace Jet_Form_Builder\Exceptions;
5 +
6 +// If this file is called directly, abort.
7 +if ( ! defined( 'WPINC' ) ) {
8 + die;
9 +}
10 +
11 +class Request_Exception extends Handler_Exception {
12 +
13 + private $errors;
14 +
15 + public function __construct( $message = '', ...$errors ) {
16 + $this->errors = isset( $errors[0] ) ? $errors[0] : false;
17 +
18 + parent::__construct( $message, ...$errors );
19 + }
20 +
21 + public function get_fields_errors() {
22 + return $this->errors;
23 + }
24 +
25 +
26 +
27 +}