TOP

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.
Source
JsonException.php
Extends
Exception
Author
DeviceAtlas Limited

Constants

BAD_DATA = 3

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

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.

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.

JSON_VERSION = 4

The JSON data you are using is to old for this API. Download a more recent version of the data.

NO_CLIENT_PROPERTIES_SECTION = 6

The JSON file does not contain the Client Properties Section. Ensure you have a valid JSON file.

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.