Mobi_Mtld_DA_Exception_JsonException
extends Exception
in package
The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
Tags
Table of Contents
- 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.
- JSON_DECODE = 2
- The internal PHP function json_decode was unable to decode the supplied JSON.
- JSON_VERSION = 4
- The JSON data you are using is to old for this API.
- NO_CLIENT_PROPERTIES_SECTION = 6
- The JSON file does not contain the Client Properties Section.
- PHP_VERSION = 1
- PHP versions earlier than 5.2.3 are unable to parse JSON data as deep as the Device Atlas tree requires.
Constants
BAD_DATA
The data stored in the JSON cannot be used to build a valid Device Atlas data tree.
public
mixed
BAD_DATA
= 3
FILE_ERROR
The path to the JSON file that was given cannot be resolved.
public
mixed
FILE_ERROR
= 5
Ensure you have supplied the correct path. Use an absolute pathname where you are unsure of the current working directory.
JSON_DECODE
The internal PHP function json_decode was unable to decode the supplied JSON.
public
mixed
JSON_DECODE
= 2
Possible reasons for this may be that the data is corrupt. Ensure you have a complete version of the latest JSON data.
JSON_VERSION
The JSON data you are using is to old for this API.
public
mixed
JSON_VERSION
= 4
Download a more recent version of the data.
NO_CLIENT_PROPERTIES_SECTION
The JSON file does not contain the Client Properties Section.
public
mixed
NO_CLIENT_PROPERTIES_SECTION
= 6
Ensure you have a valid JSON file.
PHP_VERSION
PHP versions earlier than 5.2.3 are unable to parse JSON data as deep as the Device Atlas tree requires.
public
mixed
PHP_VERSION
= 1
You will need to upgrade to PHP version 5.2.3 or later.