|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
mobi.mtld.da.exception.JsonException
public class JsonException
The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
| Field Summary | |
|---|---|
static int |
BAD_DATA
The data stored in the JSON cannot be used to build a valid Device Atlas 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 to old for this API. |
| Constructor Summary | |
|---|---|
JsonException(int code,
java.lang.String message)
Constructs a JsonException instance with a code and human-readable message. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int BAD_DATA
public static int JSON_VERSION
public static int FILE_NOT_FOUND_ERROR
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.Throwable getCause()
getCause in class java.lang.Throwablepublic int getCode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||