The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
More...
|
const int | BAD_DATA = 100 |
| The data stored in the JSON cannot be used to build a valid DeviceAtlas data tree. More...
|
|
const int | JSON_VERSION = 200 |
| The JSON data you are using is too old for this API. Download a more recent version of the data. More...
|
|
const int | FILE_NOT_FOUND_ERROR = 300 |
| 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. More...
|
|
const int | NO_CLIENT_PROPERTIES_SECTION = 400 |
| The JSON file does not contain the Client Properties Section. Ensure you have a valid JSON file. More...
|
|
|
virtual System.Exception | Cause [get] |
| Retrieves the throwable, which determines the nature/cause of the exception. More...
|
|
virtual int | Code [get] |
| Retrieves the exception code, which determines the nature/cause of the exception. More...
|
|
The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
- Copyright
- Copyright (c) 2021 by DeviceAtlas Limited. All rights reserved.
- Author
- DeviceAtlas Limited
Mobi.Mtld.DA.Exception.JsonException.JsonException |
( |
int |
code, |
|
|
string |
message |
|
) |
| |
|
inline |
Constructs a JsonException instance with a code and human-readable message.
- Parameters
-
code | This should be a constant from this exception class. |
message | Diagnostic message intended for human reading. |
const int Mobi.Mtld.DA.Exception.JsonException.BAD_DATA = 100 |
The data stored in the JSON cannot be used to build a valid DeviceAtlas data tree.
const int Mobi.Mtld.DA.Exception.JsonException.FILE_NOT_FOUND_ERROR = 300 |
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.
const int Mobi.Mtld.DA.Exception.JsonException.JSON_VERSION = 200 |
The JSON data you are using is too old for this API. Download a more recent version of the data.
const int Mobi.Mtld.DA.Exception.JsonException.NO_CLIENT_PROPERTIES_SECTION = 400 |
The JSON file does not contain the Client Properties Section. Ensure you have a valid JSON file.
virtual System.Exception Mobi.Mtld.DA.Exception.JsonException.Cause |
|
get |
Retrieves the throwable, which determines the nature/cause of the exception.
- Returns
- Explanatory code.
virtual int Mobi.Mtld.DA.Exception.JsonException.Code |
|
get |
Retrieves the exception code, which determines the nature/cause of the exception.
- Returns
- Explanatory code.
The documentation for this class was generated from the following file:
- build/common/src/dotnet/Exception/JsonException.cs