Home
last modified time | relevance | path

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

1234

/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.java36 public class NumberFormatException extends IllegalArgumentException { class
43 public NumberFormatException () { in NumberFormatException() method in NumberFormatException
53 public NumberFormatException (String s) { in NumberFormatException() method in NumberFormatException
63 static NumberFormatException forInputString(String s, int radix) { in forInputString()
64 return new NumberFormatException("For input string: \"" + s + "\"" + in forInputString()
79 static NumberFormatException forCharSequence(CharSequence s, in forCharSequence()
81 return new NumberFormatException("Error at index " in forCharSequence()
DInteger.java742 throws NumberFormatException
752 throw new NumberFormatException("s == null");
756 throw new NumberFormatException("radix " + radix +
761 throw new NumberFormatException("radix " + radix +
776 throw NumberFormatException.forInputString(s, radix);
780 throw NumberFormatException.forInputString(s, radix);
790 throw NumberFormatException.forInputString(s, radix);
794 throw NumberFormatException.forInputString(s, radix);
800 throw NumberFormatException.forInputString(s, radix);
832 throws NumberFormatException {
[all …]
DLong.java704 throws NumberFormatException in parseLong()
707 throw new NumberFormatException("Cannot parse null string"); in parseLong()
711 throw new NumberFormatException("radix " + radix + in parseLong()
715 throw new NumberFormatException("radix " + radix + in parseLong()
730 throw NumberFormatException.forInputString(s, radix); in parseLong()
734 throw NumberFormatException.forInputString(s, radix); in parseLong()
744 throw NumberFormatException.forInputString(s, radix); in parseLong()
748 throw NumberFormatException.forInputString(s, radix); in parseLong()
754 throw NumberFormatException.forInputString(s, radix); in parseLong()
786 throws NumberFormatException { in parseLong()
[all …]
DShort.java139 throws NumberFormatException { in parseShort()
142 throw new NumberFormatException( in parseShort()
165 public static short parseShort(String s) throws NumberFormatException { in parseShort()
195 throws NumberFormatException { in valueOf()
221 public static Short valueOf(String s) throws NumberFormatException { in valueOf()
330 public static Short decode(String nm) throws NumberFormatException { in decode()
333 throw new NumberFormatException( in decode()
383 public Short(String s) throws NumberFormatException { in Short()
DByte.java199 throws NumberFormatException { in parseByte()
202 throw new NumberFormatException( in parseByte()
225 public static byte parseByte(String s) throws NumberFormatException { in parseByte()
255 throws NumberFormatException { in valueOf()
281 public static Byte valueOf(String s) throws NumberFormatException { in valueOf()
327 public static Byte decode(String nm) throws NumberFormatException { in decode()
330 throw new NumberFormatException( in decode()
380 public Byte(String s) throws NumberFormatException { in Byte()
/libcore/luni/src/test/java/libcore/java/lang/
DIntegerTest.java81 assertThrows(NumberFormatException.class, () -> Integer.parseInt("--1", 10));
82 assertThrows(NumberFormatException.class, () -> Integer.parseInt("++1", 10));
85 assertThrows(NumberFormatException.class, () -> Integer.parseInt("Kona", 10));
100 assertThrows(NumberFormatException.class, () -> Integer.decode("--1")); in testDecodeInt()
101 assertThrows(NumberFormatException.class, () -> Integer.decode("++1")); in testDecodeInt()
102 assertThrows(NumberFormatException.class, () -> Integer.decode("-+1")); in testDecodeInt()
103 assertThrows(NumberFormatException.class, () -> Integer.decode("Kona")); in testDecodeInt()
212 NumberFormatException.class, in testParseUnsignedInt()
215 NumberFormatException.class, in testParseUnsignedInt()
218 NumberFormatException.class, in testParseUnsignedInt()
[all …]
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()
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/ojluni/src/test/java/math/BigDecimal/
DConstructor.java37 @Test(expectedExceptions=NumberFormatException.class)
42 @Test(expectedExceptions=NumberFormatException.class)
47 @Test(expectedExceptions=NumberFormatException.class)
52 @Test(expectedExceptions=NumberFormatException.class)
57 } catch (NumberFormatException nfe) { in charArrayConstructorIntegerOverflow()
67 @Test(expectedExceptions=NumberFormatException.class)
/libcore/ojluni/annotations/hiddenapi/java/lang/
DShort.java38 public Short(java.lang.String s) throws java.lang.NumberFormatException { in Short()
47 throws java.lang.NumberFormatException { in parseShort()
51 public static short parseShort(java.lang.String s) throws java.lang.NumberFormatException { in parseShort()
56 throws java.lang.NumberFormatException { in valueOf()
61 throws java.lang.NumberFormatException { in valueOf()
70 throws java.lang.NumberFormatException { in decode()
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()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
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 …ence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw ne… in parseInt()
58 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedInt()
60 …nedInt(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseUnsignedInt()
62 …ence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedInt()
64 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in valueOf()
66 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
96 …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 …ence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw ne… in parseLong()
59 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedLong()
61 …edLong(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in parseUnsignedLong()
63 …ence s, int beginIndex, int endIndex, int radix) throws java.lang.NumberFormatException { throw ne… in parseUnsignedLong()
65 …core.util.NonNull java.lang.String s, int radix) throws java.lang.NumberFormatException { throw ne… in valueOf()
67 …alueOf(@libcore.util.NonNull java.lang.String s) throws java.lang.NumberFormatException { throw ne… in valueOf()
71 …ecode(@libcore.util.NonNull java.lang.String nm) throws java.lang.NumberFormatException { throw ne… in decode()
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()
/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/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()

1234