Documentation

JsonException extends Exception
in package

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

Tags
author

DeviceAtlas Limited

Table of Contents

Constants

BAD_DATA  = 100
The data stored in the JSON cannot be used to build a valid DeviceAtlas data tree.
FILE_NOT_FOUND_ERROR  = 300
The path to the JSON file that was given cannot be resolved.
JSON_VERSION  = 200
The JSON data you are using is too old for this API.
NO_CLIENT_PROPERTIES_SECTION  = 400
The JSON file does not contain the Client Properties Section.

Constants

BAD_DATA

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

public mixed BAD_DATA = 100

FILE_NOT_FOUND_ERROR

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

public mixed FILE_NOT_FOUND_ERROR = 300

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

JSON_VERSION

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

public mixed JSON_VERSION = 200

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 = 400

Ensure you have a valid JSON file.


        
On this page

Search results