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

1 2 3 4 5 6 7 8 91011>>

  /libcore/ojluni/src/main/java/java/lang/
NumberFormatException.java 38 class NumberFormatException extends IllegalArgumentException {
42 * Constructs a <code>NumberFormatException</code> with no detail message.
44 public NumberFormatException () {
49 * Constructs a <code>NumberFormatException</code> with the
54 public NumberFormatException (String s) {
59 * Factory method for making a <code>NumberFormatException</code>
64 static NumberFormatException forInputString(String s) {
65 return new NumberFormatException("For input string: \"" + s + "\"");
Byte.java 118 * <p>An exception of type {@code NumberFormatException} is
144 * @throws NumberFormatException If the string does
148 throws NumberFormatException {
151 throw new NumberFormatException(
171 * @throws NumberFormatException if the string does not
174 public static byte parseByte(String s) throws NumberFormatException {
200 * @throws NumberFormatException If the {@code String} does
204 throws NumberFormatException {
227 * @throws NumberFormatException If the {@code String} does
230 public static Byte valueOf(String s) throws NumberFormatException {
    [all...]
Short.java 88 * <p>An exception of type {@code NumberFormatException} is
113 * @throws NumberFormatException If the {@code String}
117 throws NumberFormatException {
120 throw new NumberFormatException(
140 * @throws NumberFormatException If the string does not
143 public static short parseShort(String s) throws NumberFormatException {
169 * @throws NumberFormatException If the {@code String} does
173 throws NumberFormatException {
196 * @throws NumberFormatException If the {@code String} does
199 public static Short valueOf(String s) throws NumberFormatException {
    [all...]
  /external/testng/src/test/java/test/expectedexceptions/
SampleExceptions2.java 12 @Test(expectedExceptions = NumberFormatException.class )
14 throw new NumberFormatException();
17 @Test(expectedExceptions = NumberFormatException.class)
22 @Test(expectedExceptions = NumberFormatException.class)
26 @Test(expectedExceptions = NumberFormatException.class,
29 throw new NumberFormatException("This should not bomb at all");
32 @Test(expectedExceptions = NumberFormatException.class,
35 throw new NumberFormatException("This should bomb for good");
38 @Test(expectedExceptions = NumberFormatException.class, expectedExceptionsMessageRegExp = ".*")
40 throw new NumberFormatException(null)
    [all...]
SampleExceptions.java 14 @ExpectedExceptions({ NumberFormatException.class} )
16 throw new NumberFormatException();
20 @ExpectedExceptions({ NumberFormatException.class} )
26 @ExpectedExceptions({ NumberFormatException.class} )
34 // @Test(expectedExceptions = NumberFormatException.class)
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
NumberFormatExceptionTest.java 25 * java.lang.NumberFormatException#NumberFormatException()
28 NumberFormatException e = new NumberFormatException();
35 * java.lang.NumberFormatException#NumberFormatException(java.lang.String)
38 NumberFormatException e = new NumberFormatException("fixture");
ShortTest.java 85 } catch (NumberFormatException e) {
89 assertTrue("Did not throw NumberFormatException decoding 123s",
95 } catch (NumberFormatException e) {
104 } catch (NumberFormatException e) {
113 } catch (NumberFormatException e) {
122 } catch (NumberFormatException e) {
148 } catch (NumberFormatException e) {
157 } catch (NumberFormatException e) {
200 } catch (NumberFormatException e) {
212 } catch (NumberFormatException e)
    [all...]
ByteTest.java 59 fail("Expected NumberFormatException with hex string.");
60 } catch (NumberFormatException e) {
65 fail("Expected NumberFormatException with floating point string.");
66 } catch (NumberFormatException e) {
71 fail("Expected NumberFormatException with empty string.");
72 } catch (NumberFormatException e) {
77 fail("Expected NumberFormatException with null string.");
78 } catch (NumberFormatException e) {
146 fail("Expected NumberFormatException with hex string.");
147 } catch (NumberFormatException e)
    [all...]
  /art/test/542-inline-trycatch/src/
Main.java 25 private static int $inline$SingleBlock(String str) throws NumberFormatException {
32 throws NumberFormatException {
42 } catch (NumberFormatException ex) {
52 } catch (NumberFormatException ex) {
60 } catch (NumberFormatException ex) {}
79 } catch (NumberFormatException ex) {
86 } catch (NumberFormatException ex) {
94 } catch (NumberFormatException ex) {}
99 } catch (NumberFormatException ex) {}
125 } catch (NumberFormatException ex)
    [all...]
  /external/testng/src/test/java/test/sample/
Sample1.java 51 @ExpectedExceptions( {NumberFormatException.class, ArithmeticException.class})
53 throw new NumberFormatException();
57 @ExpectedExceptions( {NumberFormatException.class, ArithmeticException.class})
64 throw new NumberFormatException();
  /libcore/luni/src/test/java/libcore/java/math/
OldBigIntegerConstructorsTest.java 67 fail("NumberFormatException has not been caught");
68 } catch (NumberFormatException e) {
78 fail("NumberFormatException has not been caught");
79 } catch (NumberFormatException e) {
89 fail("NumberFormatException has not been caught");
90 } catch (NumberFormatException e) {
100 fail("NumberFormatException has not been caught");
101 } catch (NumberFormatException e) {
  /external/smali/smali/src/main/java/org/jf/smali/
LiteralTools.java 37 throws NumberFormatException {
39 throw new NumberFormatException("string is null");
42 throw new NumberFormatException("string is blank");
80 throw new NumberFormatException("The string contains invalid an digit - '" + byteChars[position] + "'");
84 throw new NumberFormatException(byteLiteral + " cannot fit into a byte");
87 throw new NumberFormatException(byteLiteral + " cannot fit into a byte");
98 throw new NumberFormatException(byteLiteral + " cannot fit into a byte");
107 throws NumberFormatException {
109 throw new NumberFormatException("string is null");
112 throw new NumberFormatException("string is blank")
    [all...]
  /external/testng/src/test/java/test/reports/
EmailableReportDriver.java 27 @Test(expectedExceptions={NumberFormatException.class})
33 @Test(expectedExceptions={NumberFormatException.class})
  /external/testng/src/test/java/test/triangle/
CheckCount.java 21 catch (NumberFormatException nfe) {
36 catch (NumberFormatException nfe) {
  /external/smali/smali/src/test/java/
IntLiteralTest.java 53 @Test(expected=NumberFormatException.class)
58 @Test(expected=NumberFormatException.class)
63 @Test(expected=NumberFormatException.class)
87 @Test(expected=NumberFormatException.class)
92 @Test(expected=NumberFormatException.class)
97 @Test(expected=NumberFormatException.class)
102 @Test(expected=NumberFormatException.class)
107 @Test(expected=NumberFormatException.class)
130 @Test(expected=NumberFormatException.class)
135 @Test(expected=NumberFormatException.class
    [all...]
ByteLiteralTest.java 54 @Test(expected=NumberFormatException.class)
59 @Test(expected=NumberFormatException.class)
64 @Test(expected=NumberFormatException.class)
88 @Test(expected=NumberFormatException.class)
93 @Test(expected=NumberFormatException.class)
98 @Test(expected=NumberFormatException.class)
103 @Test(expected=NumberFormatException.class)
126 @Test(expected=NumberFormatException.class)
131 @Test(expected=NumberFormatException.class)
136 @Test(expected=NumberFormatException.class
    [all...]
LongLiteralTest.java 52 @Test(expected=NumberFormatException.class)
57 @Test(expected=NumberFormatException.class)
62 @Test(expected=NumberFormatException.class)
83 @Test(expected=NumberFormatException.class)
88 @Test(expected=NumberFormatException.class)
93 @Test(expected=NumberFormatException.class)
98 @Test(expected=NumberFormatException.class)
119 @Test(expected=NumberFormatException.class)
124 @Test(expected=NumberFormatException.class)
129 @Test(expected=NumberFormatException.class
    [all...]
  /frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
BluetoothTestRunner.java 90 } catch (NumberFormatException e) {
99 } catch (NumberFormatException e) {
108 } catch (NumberFormatException e) {
117 } catch (NumberFormatException e) {
126 } catch (NumberFormatException e) {
135 } catch (NumberFormatException e) {
144 } catch (NumberFormatException e) {
153 } catch (NumberFormatException e) {
162 } catch (NumberFormatException e) {
171 } catch (NumberFormatException e)
    [all...]
  /external/jcommander/src/main/java/com/beust/jcommander/converters/
BigDecimalConverter.java 39 } catch (NumberFormatException nfe) {
DoubleConverter.java 37 } catch(NumberFormatException ex) {
FloatConverter.java 37 } catch(NumberFormatException ex) {
IntegerConverter.java 37 } catch(NumberFormatException ex) {
LongConverter.java 37 } catch(NumberFormatException ex) {
  /frameworks/base/core/java/android/util/
Size.java 89 private static NumberFormatException invalidSize(String s) {
90 throw new NumberFormatException("Invalid Size: \"" + s + "\"");
112 * Size.parseSize("4 by 3") => throws NumberFormatException
118 * @throws NumberFormatException if {@code string} cannot be parsed
123 throws NumberFormatException {
136 } catch (NumberFormatException e) {
SizeF.java 99 private static NumberFormatException invalidSizeF(String s) {
100 throw new NumberFormatException("Invalid SizeF: \"" + s + "\"");
123 * SizeF.parseSizeF("4 by 3") => throws NumberFormatException
129 * @throws NumberFormatException if {@code string} cannot be parsed
134 throws NumberFormatException {
147 } catch (NumberFormatException e) {

Completed in 431 milliseconds

1 2 3 4 5 6 7 8 91011>>