OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
JsonSchema
/
Exception
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:21 AM
rwxr-xr-x
📄
ExceptionInterface.php
73 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
InvalidArgumentException.php
377 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
InvalidConfigException.php
337 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
InvalidSchemaException.php
334 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
InvalidSchemaMediaTypeException.php
343 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
InvalidSourceUriException.php
348 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
JsonDecodingException.php
1.21 KB
10/21/2017 01:15:38 PM
rw-r--r--
📄
ResourceNotFoundException.php
340 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
RuntimeException.php
353 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
UnresolvableJsonPointerException.php
394 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
UriResolverException.php
330 bytes
10/21/2017 01:15:38 PM
rw-r--r--
📄
ValidationException.php
281 bytes
10/21/2017 01:15:38 PM
rw-r--r--
Editing: JsonDecodingException.php
Close
<?php /* * This file is part of the JsonSchema package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace JsonSchema\Exception; /** * Wrapper for the JsonDecodingException */ class JsonDecodingException extends RuntimeException { public function __construct($code = JSON_ERROR_NONE, \Exception $previous = null) { switch ($code) { case JSON_ERROR_DEPTH: $message = 'The maximum stack depth has been exceeded'; break; case JSON_ERROR_STATE_MISMATCH: $message = 'Invalid or malformed JSON'; break; case JSON_ERROR_CTRL_CHAR: $message = 'Control character error, possibly incorrectly encoded'; break; case JSON_ERROR_UTF8: $message = 'Malformed UTF-8 characters, possibly incorrectly encoded'; break; case JSON_ERROR_SYNTAX: $message = 'JSON syntax is malformed'; break; default: $message = 'Syntax error'; } parent::__construct($message, $code, $previous); } }