Home
last modified time | relevance | path

Searched refs:NumberFormatException (Results 1 – 25 of 71) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DShortTest.java85 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
95 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
104 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
113 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
122 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
148 } catch (NumberFormatException e) { in test_parseShortLjava_lang_String2()
157 } catch (NumberFormatException e) { in test_parseShortLjava_lang_String2()
200 } catch (NumberFormatException e) { in test_parseShortLjava_lang_StringI2()
212 } catch (NumberFormatException e) { in test_parseShortLjava_lang_StringI2()
223 } catch (NumberFormatException e) { in test_parseShortLjava_lang_StringI2()
[all …]
DByteTest.java60 } catch (NumberFormatException e) { in test_ConstructorLjava_lang_String()
66 } catch (NumberFormatException e) { in test_ConstructorLjava_lang_String()
72 } catch (NumberFormatException e) { in test_ConstructorLjava_lang_String()
78 } catch (NumberFormatException e) { in test_ConstructorLjava_lang_String()
147 } catch (NumberFormatException e) { in test_valueOfLjava_lang_String()
153 } catch (NumberFormatException e) { in test_valueOfLjava_lang_String()
159 } catch (NumberFormatException e) { in test_valueOfLjava_lang_String()
165 } catch (NumberFormatException e) { in test_valueOfLjava_lang_String()
184 } catch (NumberFormatException e) { in test_valueOfLjava_lang_StringI()
190 } catch (NumberFormatException e) { in test_valueOfLjava_lang_StringI()
[all …]
DIntegerTest.java97 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
107 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
116 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
125 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
134 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
143 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
152 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
159 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
166 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
173 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
[all …]
DLongTest.java99 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
108 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
117 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
126 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
135 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
144 } catch (NumberFormatException e) { in test_decodeLjava_lang_String2()
214 } catch (NumberFormatException e) { in test_parseLongLjava_lang_String2()
223 } catch (NumberFormatException e) { in test_parseLongLjava_lang_String2()
260 } catch (NumberFormatException e) { in test_parseLongLjava_lang_StringI()
270 } catch (NumberFormatException e) { in test_parseLongLjava_lang_StringI()
[all …]
DNumberFormatExceptionTest.java28 NumberFormatException e = new NumberFormatException(); in test_Constructor()
38 NumberFormatException e = new NumberFormatException("fixture"); in test_ConstructorLjava_lang_String()
/libcore/ojluni/src/main/java/java/lang/
DNumberFormatException.java38 class NumberFormatException extends IllegalArgumentException { class
44 public NumberFormatException () { in NumberFormatException() method in NumberFormatException
54 public NumberFormatException (String s) { in NumberFormatException() method in NumberFormatException
64 static NumberFormatException forInputString(String s) { in forInputString()
65 return new NumberFormatException("For input string: \"" + s + "\""); in forInputString()
DShort.java120 throws NumberFormatException { in parseShort()
123 throw new NumberFormatException( in parseShort()
146 public static short parseShort(String s) throws NumberFormatException { in parseShort()
176 throws NumberFormatException { in valueOf()
202 public static Short valueOf(String s) throws NumberFormatException { in valueOf()
286 public static Short decode(String nm) throws NumberFormatException { in decode()
289 throw new NumberFormatException( in decode()
337 public Short(String s) throws NumberFormatException { in Short()
DLong.java554 throws NumberFormatException in parseLong()
557 throw new NumberFormatException("null"); in parseLong()
561 throw new NumberFormatException("radix " + radix + in parseLong()
565 throw new NumberFormatException("radix " + radix + in parseLong()
583 throw NumberFormatException.forInputString(s); in parseLong()
586 throw NumberFormatException.forInputString(s); in parseLong()
594 throw NumberFormatException.forInputString(s); in parseLong()
597 throw NumberFormatException.forInputString(s); in parseLong()
601 throw NumberFormatException.forInputString(s); in parseLong()
606 throw NumberFormatException.forInputString(s); in parseLong()
[all …]
DInteger.java567 throws NumberFormatException
577 throw new NumberFormatException("s == null");
581 throw new NumberFormatException("radix " + radix +
586 throw new NumberFormatException("radix " + radix +
604 throw NumberFormatException.forInputString(s);
607 throw NumberFormatException.forInputString(s);
615 throw NumberFormatException.forInputString(s);
618 throw NumberFormatException.forInputString(s);
622 throw NumberFormatException.forInputString(s);
627 throw NumberFormatException.forInputString(s);
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DDoubleTest.java40 } catch (NumberFormatException expected) { in testNamedDoubles()
45 } catch (NumberFormatException expected) { in testNamedDoubles()
54 } catch (NumberFormatException expected) { in testNamedDoubles()
59 } catch (NumberFormatException expected) { in testNamedDoubles()
69 } catch (NumberFormatException expected) { in testSuffixParsing()
94 } catch (NumberFormatException expected) { in testExponentParsing()
136 } catch (NumberFormatException expected) { in testParse_bug71216()
142 } catch (NumberFormatException expected) { in testParse_bug71216()
DIntegerTest.java67 } catch (NumberFormatException expected) {}
72 } catch (NumberFormatException expected) {}
77 } catch (NumberFormatException expected) {}
94 } catch (NumberFormatException expected) {}
99 } catch (NumberFormatException expected) {}
104 } catch (NumberFormatException expected) {}
109 } catch (NumberFormatException expected) {}
215 } catch (NumberFormatException expected) { }
219 } catch (NumberFormatException expected) { }
223 } catch (NumberFormatException expected) { }
[all …]
DLongTest.java97 } catch (NumberFormatException expected) {}
102 } catch (NumberFormatException expected) {}
107 } catch (NumberFormatException expected) {}
124 } catch (NumberFormatException expected) {}
129 } catch (NumberFormatException expected) {}
134 } catch (NumberFormatException expected) {}
139 } catch (NumberFormatException expected) {}
231 } catch (NumberFormatException expected) { }
235 } catch (NumberFormatException expected) { }
239 } catch (NumberFormatException expected) { }
[all …]
DFloatTest.java42 } catch (NumberFormatException expected) { in testNamedFloats()
47 } catch (NumberFormatException expected) { in testNamedFloats()
56 } catch (NumberFormatException expected) { in testNamedFloats()
61 } catch (NumberFormatException expected) { in testNamedFloats()
71 } catch (NumberFormatException expected) { in testSuffixParsing()
94 } catch (NumberFormatException expected) { in testExponentParsing()
/libcore/luni/src/test/java/libcore/java/math/
DOldBigIntegerConstructorsTest.java68 } catch (NumberFormatException e) { in test_ConstrStringExc1()
79 } catch (NumberFormatException e) { in test_ConstrStringExc2()
90 } catch (NumberFormatException e) { in test_ConstrStringExc3()
101 } catch (NumberFormatException e) { in test_ConstrStringExc4()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DByte.annotated.java35 public Byte(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { thro… in Byte()
41 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseByte()
43 …seByte(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseByte()
45 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in valueOf()
47 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
49 …ecode(@libcore.util.NonNull java.lang.String nm) throws java.lang.NumberFormatException { throw ne… in decode()
DLong.annotated.java37 public Long(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { thro… in Long()
53 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseLong()
55 …seLong(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseLong()
57 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedLong()
59 …edLong(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseUnsignedLong()
61 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in valueOf()
63 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
67 …ecode(@libcore.util.NonNull java.lang.String nm) throws java.lang.NumberFormatException { throw ne… in decode()
DInteger.annotated.java36 public Integer(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { t… in Integer()
52 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseInt()
54 …rseInt(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseInt()
56 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedInt()
58 …nedInt(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseUnsignedInt()
60 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in valueOf()
62 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
92 …ecode(@libcore.util.NonNull java.lang.String nm) throws java.lang.NumberFormatException { throw ne… in decode()
DDouble.annotated.java35 public Double(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { th… in Double()
41 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
45 …Double(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseDouble()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DByte.java38 public Byte(java.lang.String s) throws java.lang.NumberFormatException { in Byte()
51 throws java.lang.NumberFormatException { in parseByte()
55 public static byte parseByte(java.lang.String s) throws java.lang.NumberFormatException { in parseByte()
60 throws java.lang.NumberFormatException { in valueOf()
65 throws java.lang.NumberFormatException { in valueOf()
70 throws java.lang.NumberFormatException { in decode()
DLong.java39 public Long(java.lang.String s) throws java.lang.NumberFormatException { in Long()
92 throws java.lang.NumberFormatException { in parseLong()
96 public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException { in parseLong()
101 throws java.lang.NumberFormatException { in parseUnsignedLong()
106 throws java.lang.NumberFormatException { in parseUnsignedLong()
111 throws java.lang.NumberFormatException { in valueOf()
116 throws java.lang.NumberFormatException { in valueOf()
125 throws java.lang.NumberFormatException { in decode()
DInteger.java40 public Integer(java.lang.String s) throws java.lang.NumberFormatException { in Integer()
89 throws java.lang.NumberFormatException { in parseInt()
93 public static int parseInt(java.lang.String s) throws java.lang.NumberFormatException { in parseInt()
98 throws java.lang.NumberFormatException { in parseUnsignedInt()
102 public static int parseUnsignedInt(java.lang.String s) throws java.lang.NumberFormatException { in parseUnsignedInt()
107 throws java.lang.NumberFormatException { in valueOf()
112 throws java.lang.NumberFormatException { in valueOf()
173 throws java.lang.NumberFormatException { in decode()
DFloat.java42 public Float(java.lang.String s) throws java.lang.NumberFormatException { in Float()
55 throws java.lang.NumberFormatException { in valueOf()
63 public static float parseFloat(java.lang.String s) throws java.lang.NumberFormatException { in parseFloat()
DDouble.java39 public Double(java.lang.String s) throws java.lang.NumberFormatException { in Double()
52 throws java.lang.NumberFormatException { in valueOf()
60 public static double parseDouble(java.lang.String s) throws java.lang.NumberFormatException { in parseDouble()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalConstructorsTest.java143 } catch (NumberFormatException e) { in testConstrChar()
164 } catch (NumberFormatException e) { in testConstrCharIntInt()
188 } catch (NumberFormatException e) { in testConstrCharIntIntMathContext()
205 } catch (NumberFormatException e) { in testConstrCharIntIntMathContextException1()
222 } catch (NumberFormatException e) { in testConstrCharIntIntMathContextException2()
234 } catch (NumberFormatException e) { in testConstrCharMathContext()
246 } catch (NumberFormatException e) { in testConstrDoubleNaN()
258 } catch (NumberFormatException e) { in testConstrDoublePosInfinity()
270 } catch (NumberFormatException e) { in testConstrDoubleNegInfinity()
412 } catch (NumberFormatException e) {} in testConstrStringException()
[all …]
/libcore/json/src/main/java/org/json/
DJSON.java52 } catch (NumberFormatException ignored) { in toDouble()
66 } catch (NumberFormatException ignored) { in toInteger()
80 } catch (NumberFormatException ignored) { in toLong()

123