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