\Mobi_Mtld_DA_Exception_JsonException

The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
PHP_VERSION
JSON_DECODE
BAD_DATA
JSON_VERSION
FILE_ERROR
NO_CLIENT_PROPERTIES_SECTION
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

PHP_VERSION

PHP_VERSION = 1

PHP versions earlier than 5.2.3 are unable to parse JSON data as deep as the Device Atlas tree requires.

You will need to upgrade to PHP version 5.2.3 or later.

JSON_DECODE

JSON_DECODE = 2

The internal PHP function json_decode was unable to decode the supplied JSON.

Possible reasons for this may be that the data is corrupt. Ensure you have a complete version of the latest JSON data.

BAD_DATA

BAD_DATA = 3

The data stored in the JSON cannot be used to build a valid Device Atlas data tree.

JSON_VERSION

JSON_VERSION = 4

The JSON data you are using is to old for this API.

Download a more recent version of the data.

FILE_ERROR

FILE_ERROR = 5

The path to the JSON file that was given cannot be resolved.

Ensure you have supplied the correct path. Use an absolute pathname where you are unsure of the current working directory.

NO_CLIENT_PROPERTIES_SECTION

NO_CLIENT_PROPERTIES_SECTION = 6

The JSON file does not contain the Client Properties Section.

Ensure you have a valid JSON file.