public class JsonException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
BAD_DATA
The data stored in the JSON cannot be used to build a valid DeviceAtlas data tree.
|
static int |
FILE_NOT_FOUND_ERROR
The path to the JSON file that was given cannot be resolved.
|
static int |
JSON_VERSION
The JSON data you are using is too old for this API.
|
static int |
NO_CLIENT_PROPERTIES_SECTION
The JSON file does not contain the Client Properties Section.
|
Constructor and Description |
---|
JsonException(int code,
String message)
Constructs a JsonException instance with a code and human-readable message.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Retrieves the throwable, which determines the nature/cause of the exception.
|
int |
getCode()
Retrieves the exception code, which determines the nature/cause of the exception.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int BAD_DATA
public static final int JSON_VERSION
public static final int FILE_NOT_FOUND_ERROR
public static final int NO_CLIENT_PROPERTIES_SECTION
public JsonException(int code, String message)
code
- This should be a constant from this exception class.message
- Diagnostic message intended for human reading.public Throwable getCause()
public int getCode()
Copyright © 2021 DeviceAtlas Limited. All rights reserved.