action-exception.php
4 years ago
condition-exception.php
4 years ago
gateway-exception.php
4 years ago
handler-exception.php
4 years ago
integration-exception.php
4 years ago
parse-exception.php
4 years ago
plain-default-exception.php
4 years ago
preset-exception.php
4 years ago
request-exception.php
4 years ago
request-exception.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Exceptions; |
| 5 | |
| 6 | |
| 7 | class Request_Exception extends Handler_Exception { |
| 8 | |
| 9 | private $errors; |
| 10 | |
| 11 | public function __construct( $message = "", ...$errors ) { |
| 12 | $this->errors = isset( $errors[0] ) ? $errors[0] : false; |
| 13 | |
| 14 | parent::__construct( $message, ...$errors ); |
| 15 | } |
| 16 | |
| 17 | public function get_fields_errors() { |
| 18 | return $this->errors; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | |
| 23 | } |