Statements (56)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Exception
|
gptkbp:common_cause |
Invalid input parameters
Out of range values Null values in method arguments Type mismatch in method arguments |
gptkbp:constructor |
Illegal Argument Exception()
Illegal Argument Exception(String message) Illegal Argument Exception(Throwable cause) Illegal Argument Exception(String message, Throwable cause) |
gptkbp:description |
Thrown to indicate that a method has been passed an illegal or inappropriate argument.
|
gptkbp:example |
Map.put All(Map<? extends K,? extends V> m) with null map
Big Decimal(String val) with non-numeric string Buffered Reader.read Line() with null input stream Collections.sort(List< T> list) with null list Double.value Of(String s) with non-numeric string File Input Stream(File file) with a null file File Reader(File file) with a null file List.add(int index, E element) with index out of bounds Integer.value Of(String s) with non-numeric string List.get(int index) with index out of bounds List.remove(int index) with index out of bounds Math.floor Div(int x, int y) with y = 0 Math.sqrt(double a) with negative a List.set(int index, E element) with index out of bounds Scanner.next Int() with non-integer input String Builder.append(String str) with null str String.index Of(String str) with null str String.split(String regex) with null regex Thread.interrupt() with a null thread Thread.sleep(long millis) with negative millis URL(String spec) with invalid URL format URL.open Connection() with invalid URL Local Date Time.of(int year, int month, int day, int hour, int minute) with invalid values Map.put(K key, V value) with null key in a non-nullable map Local Time.of(int hour, int minute) with invalid hour or minute Local Date.parse(Char Sequence text) with invalid date format String.substring(int begin Index, int end Index) with invalid indices Integer.rotate Left(int i, int distance) with invalid distance Double.parse Double(String s) with non-numeric string String.substring(int begin Index) with invalid begin Index Thread.set Priority(int priority) with invalid priority value Local Date.of(int year, int month, int day Of Month) with invalid month or day String Builder.insert(int offset, String str) with invalid offset Integer.parse Int(String s, int radix) with invalid radix String.replace(Char Sequence target, Char Sequence replacement) with null target Integer.compare(int x, int y) with invalid arguments Map.get(Object key) with null key in a non-nullable map Integer.parse Int(String s) with non-numeric string |
https://www.w3.org/2000/01/rdf-schema#label |
Illegal Argument Exception
|
gptkbp:occurs_in |
gptkb:Java
|
gptkbp:related_to |
gptkb:Illegal_State_Exception
gptkb:Null_Pointer_Exception |
gptkbp:type_of |
gptkb:Exception
|
gptkbp:used_in |
gptkb:API
|
gptkbp:bfsParent |
gptkb:Exception
|
gptkbp:bfsLayer |
5
|