public class JsonException
extends java.lang.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,
java.lang.String message)
Constructs a JsonException instance with a code and human-readable message.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
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,
java.lang.String message)
code - This should be a constant from this exception class.message - Diagnostic message intended for human reading.public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic int getCode()
Copyright © 2013 by mTLD Top Level Domain Limited. All rights reserved. Portions copyright © 2008 by Argo Interactive Limited. Portions copyright © 2008 by Nokia Inc. Portions copyright © 2008 by Telecom Italia Mobile S.p.A. Portions copyright © 2008 by Volantis Systems Limited. Portions copyright © 2002-2008 by Andreas Staeding. Portions copyright © 2008 by Zandan.