PluginProbe
Brevo – Email, SMS, Web Push, Chat, and more. / 3.2.1
Brevo – Email, SMS, Web Push, Chat, and more. v3.2.1
2.9.13 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.9 3.1.0 3.1.1 3.1.10 3.1.11 All 140 releases
mailin / wonderpush-php-lib / lib / Errors / Parsing.php
Parsing.php
32 lines 650 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WonderPush\Errors;
4
5 if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access
6
7 /**
8 * JSON related errors.
9 */
10 class Parsing extends Base {
11
12 /**
13 * The output of json_last_error();
14 * @var int
15 */
16 private $jsonErrorCode;
17
18 public function __construct($jsonErrorCode, $message = '', $codeStr = '0', \Exception $previous = null) {
19 parent::__construct($message, $codeStr, $previous);
20 $this->jsonErrorCode = $jsonErrorCode;
21 }
22
23 /**
24 * The output of json_last_error();
25 * @return int
26 */
27 public function getJsonErrorCode() {
28 return $this->jsonErrorCode;
29 }
30
31 }
32