HomeSort by relevance Sort by last modified time
    Searched refs:JSONException (Results 1 - 25 of 204) sorted by null

1 2 3 4 5 6 7 8 9

  /libcore/json/src/main/java/org/json/
JSONException.java 39 * } catch (JSONException e) {
44 public class JSONException extends Exception {
46 public JSONException(String s) {
JSON.java 23 static double checkDouble(double d) throws JSONException {
25 throw new JSONException("Forbidden numeric value: " + d);
95 public static JSONException typeMismatch(Object indexOrName, Object actual,
96 String requiredType) throws JSONException {
98 throw new JSONException("Value at " + indexOrName + " is null.");
100 throw new JSONException("Value " + actual + " at " + indexOrName
106 public static JSONException typeMismatch(Object actual, String requiredType)
107 throws JSONException {
109 throw new JSONException("Value is null.");
111 throw new JSONException("Value " + actua
    [all...]
JSONStringer.java 44 * {@link JSONException}.
52 * JSONException}.
138 public JSONStringer array() throws JSONException {
147 public JSONStringer endArray() throws JSONException {
157 public JSONStringer object() throws JSONException {
166 public JSONStringer endObject() throws JSONException {
174 JSONStringer open(Scope empty, String openBracket) throws JSONException {
176 throw new JSONException("Nesting problem: multiple top-level roots");
188 JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException {
191 throw new JSONException("Nesting problem")
    [all...]
JSONArray.java 84 * @throws JSONException if the parse fails or doesn't yield a
87 public JSONArray(JSONTokener readFrom) throws JSONException {
104 * @throws JSONException if the parse fails or doesn't yield a {@code
107 public JSONArray(String json) throws JSONException {
114 public JSONArray(Object array) throws JSONException {
116 throw new JSONException("Not a primitive array: " + array.getClass());
149 public JSONArray put(double value) throws JSONException {
192 void checkedPut(Object value) throws JSONException {
207 public JSONArray put(int index, boolean value) throws JSONException {
220 public JSONArray put(int index, double value) throws JSONException {
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
JsonDeserializable.java 19 import org.json.JSONException;
23 public JSONObject fromJSON() throws JSONException;
JsonSerializable.java 19 import org.json.JSONException;
23 public JSONObject toJSON() throws JSONException;
JsonRpcResult.java 19 import org.json.JSONException;
35 public static JSONObject empty(int id) throws JSONException {
43 public static JSONObject result(int id, Object data) throws JSONException {
51 public static JSONObject error(int id, Throwable t) throws JSONException {
  /external/google-tv-pairing-protocol/java/src/com/google/polo/json/
JSONWriter.java 108 * @throws JSONException If the value is out of sequence.
110 private JSONWriter append(String s) throws JSONException {
112 throw new JSONException("Null pointer");
121 throw new JSONException(e);
129 throw new JSONException("Value out of sequence.");
137 * @throws JSONException If the nesting is too deep, or if the object is
141 public JSONWriter array() throws JSONException {
148 throw new JSONException("Misplaced array.");
156 * @throws JSONException If unbalanced.
158 private JSONWriter end(char m, char c) throws JSONException {
    [all...]
JSONException.java 4 * The JSONException is thrown by the JSON.org classes then things are amiss.
8 public class JSONException extends Exception {
12 * Constructs a JSONException with an explanatory message.
15 public JSONException(String message) {
19 public JSONException(Throwable t) {
CDL.java 53 * @throws JSONException if the quoted string is badly formed.
55 private static String getValue(JSONTokener x) throws JSONException {
79 * @throws JSONException
81 public static JSONArray rowToJSONArray(JSONTokener x) throws JSONException {
113 * @throws JSONException
116 throws JSONException {
126 * @throws JSONException
128 public static JSONArray toJSONArray(String string) throws JSONException {
137 * @throws JSONException
139 public static JSONArray toJSONArray(JSONTokener x) throws JSONException {
    [all...]
JSONTokener.java 75 public void back() throws JSONException {
77 throw new JSONException("Stepping back two steps is not supported");
110 public boolean more() throws JSONException {
125 public char next() throws JSONException {
137 throw new JSONException(exc);
155 * @throws JSONException if the character does not match.
157 public char next(char c) throws JSONException {
172 * @throws JSONException
176 public String next(int n) throws JSONException {
196 throw new JSONException(exc)
    [all...]
JSONArray.java 102 * @throws JSONException If there is a syntax error.
104 public JSONArray(JSONTokener x) throws JSONException {
154 * @throws JSONException If there is a syntax error.
156 public JSONArray(String source) throws JSONException {
175 * @throws JSONException If not an array.
198 * @throws JSONException If not an array.
200 public JSONArray(Object array) throws JSONException {
208 throw new JSONException("JSONArray initial value should be a string or collection or array.");
216 * @throws JSONException If not an array.
218 public JSONArray(Object array,boolean includeSuperClass) throws JSONException {
    [all...]
  /prebuilts/misc/common/json/
json-prebuilt.jar 
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionExtras.java 18 import org.json.JSONException;
40 String toJsonString() throws JSONException;
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
BackupSharedPreference.java 19 import org.json.JSONException;
30 JSONObject toJson() throws JSONException;
  /external/robolectric/v1/lib/main/
json-20080701.jar 
  /external/robolectric/v3/runtime/
json-20080701.jar 
  /prebuilts/tools/common/m2/repository/org/json/json/20080701/
json-20080701.jar 
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
AbstractAssetMatcher.java 19 import org.json.JSONException;
47 throws AssociationServiceException, JSONException {
AbstractAsset.java 21 import org.json.JSONException;
75 } catch (JSONException | IOException e) {
  /libcore/json/src/test/java/org/json/
JSONObjectTest.java 39 public void testEmptyObject() throws JSONException {
53 } catch (JSONException e) {
58 } catch (JSONException e) {
63 } catch (JSONException e) {
68 } catch (JSONException e) {
73 } catch (JSONException e) {
78 } catch (JSONException e) {
83 } catch (JSONException e) {
88 } catch (JSONException e) {
108 public void testEqualsAndHashCode() throws JSONException {
    [all...]
JSONStringerTest.java 31 public void testValueJSONNull() throws JSONException {
39 public void testEmptyObject() throws JSONException {
46 public void testEmptyArray() throws JSONException {
53 public void testArray() throws JSONException {
65 public void testValueObjectMethods() throws JSONException {
75 public void testKeyValue() throws JSONException {
95 public void testNumericRepresentations() throws JSONException {
104 public void testWeirdNumbers() throws JSONException {
108 } catch (JSONException e) {
113 } catch (JSONException e)
    [all...]
ParsingTest.java 33 } catch (JSONException e) {
37 public void testParsingLiterals() throws JSONException {
46 public void testParsingQuotedStrings() throws JSONException {
54 public void testParsingSingleQuotedStrings() throws JSONException {
62 public void testParsingUnquotedStrings() throws JSONException {
75 public void testParsingNumbersThatAreBestRepresentedAsLongs() throws JSONException {
82 public void testParsingNumbersThatAreBestRepresentedAsIntegers() throws JSONException {
89 public void testParsingNegativeZero() throws JSONException {
93 public void testParsingIntegersWithAdditionalPrecisionYieldDoubles() throws JSONException {
100 public void testParsingNumbersThatAreBestRepresentedAsDoubles() throws JSONException {
    [all...]
JSONArrayTest.java 30 public void testEmptyArray() throws JSONException {
37 } catch (JSONException e) {
42 } catch (JSONException e) {
58 public void testEqualsAndHashCode() throws JSONException {
76 public void testBooleans() throws JSONException {
126 public void testCoerceStringToBoolean() throws JSONException {
132 } catch (JSONException expected) {
138 public void testNulls() throws JSONException {
150 } catch (JSONException e) {
155 } catch (JSONException e)
    [all...]
  /frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/
MusicProviderTask.java 22 import org.json.JSONException;
55 } catch (JSONException e) {

Completed in 523 milliseconds

1 2 3 4 5 6 7 8 9