Home
last modified time | relevance | path

Searched refs:IllegalArgumentException (Results 1 – 25 of 865) sorted by relevance

12345678910>>...35

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DArrayTest.java46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetBoolean()
57 try { Array.getByte(booleans, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte()
59 try { Array.getByte(chars, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte()
60 try { Array.getByte(doubles, 0); fail(); } catch (IllegalArgumentException expected) {} in testGetByte()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlSerializer.java50 throws IllegalArgumentException, IllegalStateException; in setFeature()
78 throws IllegalArgumentException, IllegalStateException; in setProperty()
95 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
102 throws IOException, IllegalArgumentException, IllegalStateException; in setOutput()
110 throws IOException, IllegalArgumentException, IllegalStateException; in startDocument()
118 throws IOException, IllegalArgumentException, IllegalStateException; in endDocument()
140 throws IOException, IllegalArgumentException, IllegalStateException; in setPrefix()
155 throws IllegalArgumentException; in getPrefix()
210 throws IOException, IllegalArgumentException, IllegalStateException; in startTag()
220 throws IOException, IllegalArgumentException, IllegalStateException; in attribute()
[all …]
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectInputStreamGetFieldTest.java105 } catch (IllegalArgumentException e) {} in test_defaultedLjava_lang_String()
131 } catch (IllegalArgumentException e) {} in test_getException()
137 } catch (IllegalArgumentException e) {} in test_getException()
143 } catch (IllegalArgumentException e) {} in test_getException()
149 } catch (IllegalArgumentException e) {} in test_getException()
155 } catch (IllegalArgumentException e) {} in test_getException()
161 } catch (IllegalArgumentException e) {} in test_getException()
167 } catch (IllegalArgumentException e) {} in test_getException()
173 } catch (IllegalArgumentException e) {} in test_getException()
179 } catch (IllegalArgumentException e) {} in test_getException()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIllegalArgumentExceptionTest.java30 IllegalArgumentException e = new IllegalArgumentException(); in test_Constructor()
40 IllegalArgumentException e = new IllegalArgumentException("fixture"); in test_ConstructorLjava_lang_String()
50 IllegalArgumentException emptyException = new IllegalArgumentException(emptyThrowable); in test_ConstructorLjava_lang_Throwable()
56 IllegalArgumentException e = new IllegalArgumentException(exception); in test_ConstructorLjava_lang_Throwable()
68 IllegalArgumentException e = new IllegalArgumentException("fixture", in test_ConstructorLjava_lang_StringLjava_lang_Throwable()
78 SerializationTest.verifySelf(new IllegalArgumentException()); in testSerializationSelf()
85 SerializationTest.verifyGolden(this, new IllegalArgumentException()); in testSerializationCompatibility()
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java74 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
79 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
84 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
89 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
94 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
99 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
104 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
109 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
114 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
119 } catch (IllegalArgumentException expected) { } in testValueOfInvalid()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DOldBidiTest.java80 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments()
87 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments()
94 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments()
102 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments()
110 } catch (IllegalArgumentException expected) { in testReorderVisuallyIllegalArguments()
119 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments()
125 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments()
132 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments()
139 } catch (IllegalArgumentException expected) { in testRequiresBidiIllegalArguments()
150 } catch (IllegalArgumentException expected) { in testCreateLineBidiIllegalArguments()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DField.java92 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in get()
95 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getBoolean()
98 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getByte()
101 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getChar()
104 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getShort()
107 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getInt()
110 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getLong()
113 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getFloat()
116 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getDouble()
119 throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in set()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DField.java341 throws IllegalArgumentException, IllegalAccessException; in get()
369 throws IllegalArgumentException, IllegalAccessException; in getBoolean()
397 throws IllegalArgumentException, IllegalAccessException; in getByte()
427 throws IllegalArgumentException, IllegalAccessException; in getChar()
457 throws IllegalArgumentException, IllegalAccessException; in getShort()
487 throws IllegalArgumentException, IllegalAccessException; in getInt()
517 throws IllegalArgumentException, IllegalAccessException; in getLong()
547 throws IllegalArgumentException, IllegalAccessException; in getFloat()
577 throws IllegalArgumentException, IllegalAccessException; in getDouble()
649 throws IllegalArgumentException, IllegalAccessException; in set()
[all …]
DArray.java113 throws IllegalArgumentException, NegativeArraySizeException { in newInstance()
116 throw new IllegalArgumentException("Bad number of dimensions: " + dimensions.length); in newInstance()
119 throw new IllegalArgumentException("Can't allocate an array of void"); in newInstance()
179 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in get()
231 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getBoolean()
256 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getByte()
281 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getChar()
306 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getShort()
333 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getInt()
364 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getLong()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DArray.annotated.java38 …ang.Class<?> componentType, int... dimensions) throws java.lang.IllegalArgumentException, java.lan… in newInstance()
42 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in get()
44 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getBoolean()
46 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getByte()
48 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getChar()
50 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getShort()
52 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getInt()
54 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getLong()
56 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getFloat()
58 …dex) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException { throw n… in getDouble()
[all …]
DField.annotated.java58 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in get()
60 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getBoolean()
62 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getByte()
64 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getChar()
66 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getShort()
68 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getInt()
70 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getLong()
72 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getFloat()
74 … java.lang.Object obj) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in getDouble()
76 …ava.lang.Object value) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException; in set()
[all …]
/libcore/luni/src/test/java/libcore/java/math/
DMathContextTest.java43 } catch (IllegalArgumentException expected) { in testConstructor()
48 } catch (IllegalArgumentException expected) { in testConstructor()
55 } catch (IllegalArgumentException expected) { in testConstructor()
62 } catch (IllegalArgumentException expected) { in testConstructor()
67 } catch (IllegalArgumentException expected) { in testConstructor()
72 } catch (IllegalArgumentException expected) { in testConstructor()
79 } catch (IllegalArgumentException expected) { in testConstructor()
84 } catch (IllegalArgumentException expected) { in testConstructor()
/libcore/ojluni/src/main/java/java/sql/
DTime.java97 if (s == null) throw new java.lang.IllegalArgumentException(); in valueOf()
108 throw new java.lang.IllegalArgumentException(); in valueOf()
158 throw new java.lang.IllegalArgumentException(); in getYear()
172 throw new java.lang.IllegalArgumentException(); in getMonth()
185 throw new java.lang.IllegalArgumentException(); in getDay()
199 throw new java.lang.IllegalArgumentException(); in getDate()
213 throw new java.lang.IllegalArgumentException(); in setYear()
227 throw new java.lang.IllegalArgumentException(); in setMonth()
241 throw new java.lang.IllegalArgumentException(); in setDate()
DDate.java120 throw new java.lang.IllegalArgumentException(); in valueOf()
143 throw new java.lang.IllegalArgumentException(); in valueOf()
187 throw new java.lang.IllegalArgumentException(); in getHours()
201 throw new java.lang.IllegalArgumentException(); in getMinutes()
215 throw new java.lang.IllegalArgumentException(); in getSeconds()
229 throw new java.lang.IllegalArgumentException(); in setHours()
243 throw new java.lang.IllegalArgumentException(); in setMinutes()
257 throw new java.lang.IllegalArgumentException(); in setSeconds()
/libcore/ojluni/src/main/java/java/lang/
DIllegalArgumentException.java36 class IllegalArgumentException extends RuntimeException { class
41 public IllegalArgumentException() { in IllegalArgumentException() method in IllegalArgumentException
51 public IllegalArgumentException(String s) { in IllegalArgumentException() method in IllegalArgumentException
71 public IllegalArgumentException(String message, Throwable cause) { in IllegalArgumentException() method in IllegalArgumentException
89 public IllegalArgumentException(Throwable cause) { in IllegalArgumentException() method in IllegalArgumentException
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSimpleTimeZoneTest.java71 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIII()
80 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIII()
89 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIII()
98 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIII()
130 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIII()
139 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIII()
148 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIII()
157 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIII()
207 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIIIII()
216 } catch (IllegalArgumentException e) { in test_ConstructorILjava_lang_StringIIIIIIIIIII()
[all …]
/libcore/ojluni/src/main/java/java/text/
DBidi.java121 throw new IllegalArgumentException("paragraph is null"); in Bidi()
156 throw new IllegalArgumentException("paragraph is null"); in Bidi()
182 throw new IllegalArgumentException("text is null"); in Bidi()
185 throw new IllegalArgumentException("bad length: " + paragraphLength); in Bidi()
188 throw new IllegalArgumentException("bad range: " + textStart + in Bidi()
193 throw new IllegalArgumentException("bad range: " + embStart + in Bidi()
220 throw new IllegalArgumentException("Invalid ranges (start=" + lineStart + ", " + in createLineBidi()
301 } catch (IllegalArgumentException e) { in getLevelAt()
376 throw new IllegalArgumentException("Value start " + start + in requiresBidi()
401 throw new IllegalArgumentException("Value levelStart " + in reorderVisually()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DPBEKeySpecTest.java76 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
86 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
95 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
102 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
109 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
116 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
123 } catch (IllegalArgumentException e) { in testPBEKeySpec2()
153 } catch (IllegalArgumentException e) { in testPBEKeySpec3()
163 } catch (IllegalArgumentException e) { in testPBEKeySpec3()
173 } catch (IllegalArgumentException e) { in testPBEKeySpec3()
[all …]
DSecretKeySpecTest.java51 } catch (IllegalArgumentException e) { in testSecretKeySpec1()
58 } catch (IllegalArgumentException e) { in testSecretKeySpec1()
65 } catch (IllegalArgumentException e) { in testSecretKeySpec1()
91 } catch (IllegalArgumentException e) { in testSecretKeySpec2()
98 } catch (IllegalArgumentException e) { in testSecretKeySpec2()
105 } catch (IllegalArgumentException e) { in testSecretKeySpec2()
112 } catch (IllegalArgumentException e) { in testSecretKeySpec2()
119 } catch (IllegalArgumentException e) { in testSecretKeySpec2()
149 } catch (IllegalArgumentException e) { in testSecretKeySpec3()
/libcore/luni/src/test/java/libcore/java/util/
DUUIDTest.java30 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
35 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
40 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
45 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
50 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
/libcore/ojluni/src/main/java/java/nio/channels/
DFileLock.java151 throw new IllegalArgumentException("Negative position"); in FileLock()
153 throw new IllegalArgumentException("Negative size"); in FileLock()
155 throw new IllegalArgumentException("Negative position + size"); in FileLock()
189 throw new IllegalArgumentException("Negative position"); in FileLock()
191 throw new IllegalArgumentException("Negative size"); in FileLock()
193 throw new IllegalArgumentException("Negative position + size"); in FileLock()
/libcore/ojluni/src/main/java/javax/security/auth/x500/
DX500Principal.java183 IllegalArgumentException iae = new IllegalArgumentException in X500Principal()
228 IllegalArgumentException iae = new IllegalArgumentException in X500Principal()
268 IllegalArgumentException iae = new IllegalArgumentException in X500Principal()
275 IllegalArgumentException iae = new IllegalArgumentException in X500Principal()
367 throw new IllegalArgumentException("invalid format specified"); in getName()
417 throw new IllegalArgumentException("invalid format specified"); in getName()
/libcore/ojluni/src/main/java/java/security/spec/
DECFieldF2m.java55 throw new IllegalArgumentException("m is not positive"); in ECFieldF2m()
89 throw new IllegalArgumentException("m is not positive"); in ECFieldF2m()
94 throw new IllegalArgumentException in ECFieldF2m()
138 throw new IllegalArgumentException("m is not positive"); in ECFieldF2m()
141 throw new IllegalArgumentException in ECFieldF2m()
146 throw new IllegalArgumentException in ECFieldF2m()
150 throw new IllegalArgumentException in ECFieldF2m()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509TrustManagerTest.java37 } catch (IllegalArgumentException expected) { in test_checkClientTrusted_01()
44 } catch (IllegalArgumentException expected) { in test_checkClientTrusted_01()
51 } catch (IllegalArgumentException expected) { in test_checkClientTrusted_01()
57 } catch (IllegalArgumentException expected) { in test_checkClientTrusted_01()
94 } catch (IllegalArgumentException expected) { in test_checkServerTrusted_01()
101 } catch (IllegalArgumentException expected) { in test_checkServerTrusted_01()
108 } catch (IllegalArgumentException expected) { in test_checkServerTrusted_01()
114 } catch (IllegalArgumentException expected) { in test_checkServerTrusted_01()
/libcore/luni/src/main/java/javax/xml/parsers/
DSAXParser.java127 throw new IllegalArgumentException("InputStream cannot be null"); in parse()
158 throw new IllegalArgumentException("InputStream cannot be null"); in parse()
183 throw new IllegalArgumentException("InputStream cannot be null"); in parse()
211 throw new IllegalArgumentException("InputStream cannot be null"); in parse()
238 throw new IllegalArgumentException("uri cannot be null"); in parse()
262 throw new IllegalArgumentException("uri cannot be null"); in parse()
287 throw new IllegalArgumentException("File cannot be null"); in parse()
316 throw new IllegalArgumentException("File cannot be null"); in parse()
349 throw new IllegalArgumentException("InputSource cannot be null"); in parse()
380 throw new IllegalArgumentException("InputSource cannot be null"); in parse()

12345678910>>...35