Home
last modified time | relevance | path

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

12345678910>>...43

/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()
658 throws IllegalArgumentException, IllegalAccessException; in set()
[all …]
DArray.java114 throws IllegalArgumentException, NegativeArraySizeException { in newInstance()
117 throw new IllegalArgumentException("Bad number of dimensions: " + dimensions.length); in newInstance()
120 throw new IllegalArgumentException("Can't allocate an array of void"); in newInstance()
180 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in get()
232 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getBoolean()
257 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getByte()
282 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getChar()
307 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getShort()
334 throws IllegalArgumentException, ArrayIndexOutOfBoundsException { in getInt()
365 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/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/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.java34 public class IllegalArgumentException extends RuntimeException { class
39 public IllegalArgumentException() { in IllegalArgumentException() method in IllegalArgumentException
49 public IllegalArgumentException(String s) { in IllegalArgumentException() method in IllegalArgumentException
69 public IllegalArgumentException(String message, Throwable cause) { in IllegalArgumentException() method in IllegalArgumentException
87 public IllegalArgumentException(Throwable cause) { in IllegalArgumentException() method in IllegalArgumentException
/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()
226 throw new IllegalArgumentException("Invalid ranges (start=" + lineStart + ", " + in createLineBidi()
307 } catch (IllegalArgumentException e) { in getLevelAt()
382 throw new IllegalArgumentException("Value start " + start + in requiresBidi()
407 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 …]
/libcore/luni/src/test/java/libcore/java/util/
DUUIDTest.java35 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
40 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
45 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
50 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
55 } catch (IllegalArgumentException expected) { } in testFromStringInvalidValues()
81 } catch (IllegalArgumentException expected) { } in testCurrentImplementation_invalidInputs()
86 } catch (IllegalArgumentException expected) { } in testCurrentImplementation_invalidInputs()
/libcore/ojluni/src/main/java/java/security/spec/
DDSAGenParameterSpec.java73 throw new IllegalArgumentException in DSAGenParameterSpec()
79 throw new IllegalArgumentException in DSAGenParameterSpec()
85 throw new IllegalArgumentException in DSAGenParameterSpec()
90 throw new IllegalArgumentException in DSAGenParameterSpec()
94 throw new IllegalArgumentException in DSAGenParameterSpec()
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/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/lang/constant/
DConstantUtils.java56 throw new IllegalArgumentException("Invalid class name: " + name); in validateBinaryClassName()
71 throw new IllegalArgumentException("zero-length member name"); in validateMemberName()
75 throw new IllegalArgumentException("Invalid member name: " + name); in validateMemberName()
78 throw new IllegalArgumentException("Invalid member name: " + name); in validateMemberName()
86 throw new IllegalArgumentException("not a class or interface type: " + classDesc); in validateClassOrInterface()
125 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
131 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
136 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
141 throw new IllegalArgumentException("Bad method descriptor: " + descriptor); in parseMethodDescriptor()
204 …throw new IllegalArgumentException(String.format("Cannot create an array type descriptor with more… in skipOverFieldSignature()
/libcore/ojluni/src/main/java/java/nio/channels/
DFileLock.java160 throw new IllegalArgumentException("Negative position"); in FileLock()
162 throw new IllegalArgumentException("Negative size"); in FileLock()
164 throw new IllegalArgumentException("Negative position + size"); in FileLock()
203 throw new IllegalArgumentException("Negative position"); in FileLock()
205 throw new IllegalArgumentException("Negative size"); in FileLock()
207 throw new IllegalArgumentException("Negative position + size"); in FileLock()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DArrayTest.java43 } catch (IllegalArgumentException e) { in test_getLjava_lang_ObjectI()
74 } catch (IllegalArgumentException e) { in test_getLjava_lang_ObjectI()
110 } catch (IllegalArgumentException e) { in test_getBooleanLjava_lang_ObjectI()
156 } catch (IllegalArgumentException e) { in test_getByteLjava_lang_ObjectI()
202 } catch (IllegalArgumentException e) { in test_getCharLjava_lang_ObjectI()
248 } catch (IllegalArgumentException e) { in test_getDoubleLjava_lang_ObjectI()
295 } catch (IllegalArgumentException e) { in test_getFloatLjava_lang_ObjectI()
341 } catch (IllegalArgumentException e) { in test_getIntLjava_lang_ObjectI()
383 } catch (IllegalArgumentException e) { in test_getLengthLjava_lang_Object()
407 } catch (IllegalArgumentException e) { in test_getLongLjava_lang_ObjectI()
[all …]

12345678910>>...43