- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 863 for IllegalArgumentException (0.14 seconds)
-
android/guava/src/com/google/common/io/Resources.java
* * <p>In the unusual case where the context class loader is null, the class loader that loaded * this class ({@code Resources}) will be used instead. * * @throws IllegalArgumentException if the resource is not found */ @CanIgnoreReturnValue // being used to check if a resource exists // TODO(cgdecker): maybe add a better way to check if a resource exists
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.4K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/XslTransformer.java
import java.io.IOException; public class XslTransformer { public static void main(String[] args) throws TransformerException, IOException { if (args.length < 3 || args.length > 4) { throw new IllegalArgumentException("USAGE: <style-sheet> <source-file> <dest-file> [dest-dir]"); } File stylesheet = new File(args[0]); File source = new File(args[1]); File dest = new File(args[2]);Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Oct 05 19:36:14 GMT 2023 - 2.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
ImmutableSortedMap.<String, Integer>naturalOrder() .put("one", 1) .put("one", 2); // throwing on this line would be even better assertThrows(IllegalArgumentException.class, () -> builder.build()); } public void testOf() { assertMapEquals(ImmutableSortedMap.of("one", 1), "one", 1); assertMapEquals(ImmutableSortedMap.of("one", 1, "two", 2), "one", 1, "two", 2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/StandardNetwork.java
checkNotNull(node); throw new IllegalArgumentException(String.format(NODE_NOT_IN_GRAPH, node)); } return connections; } final N checkedReferenceNode(E edge) { N referenceNode = edgeToReferenceNode.get(edge); if (referenceNode == null) { checkNotNull(edge); throw new IllegalArgumentException(String.format(EDGE_NOT_IN_GRAPH, edge)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 6.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
} private static void assertCastFails(long value) { try { UnsignedBytes.checkedCast(value); fail("Cast to byte should have failed: " + value); } catch (IllegalArgumentException ex) { assertWithMessage("%s not found in exception text: %s", value, ex.getMessage()) .that(ex.getMessage().contains(String.valueOf(value))) .isTrue(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 13.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
Files.write(ASCII, temp1, UTF_8); assertThrows(IllegalArgumentException.class, () -> Files.copy(temp1, temp2)); assertThat(Files.toString(temp1, UTF_8)).isEqualTo(ASCII); } public void testCopySameFile() throws IOException { File temp = createTempFile(); Files.write(ASCII, temp, UTF_8); assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 22.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/ds/DataStoreFactory.java
* @param dataStore the data store instance to register, must not be null * @throws IllegalArgumentException if either name or dataStore is null */ public void add(final String name, final DataStore dataStore) { if (name == null || dataStore == null) { throw new IllegalArgumentException( "Both name and dataStore parameters are required. name: " + name + ", dataStore: " + dataStore);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 9K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
*/ public void testCreateCustomFilter_NullPatterns() { try { SerializeUtil.createCustomFilter(null); fail("Expected IllegalArgumentException"); } catch (final IllegalArgumentException e) { // Expected } } /** * Test serialization with empty array * * @throws Exception */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java
assertThrows( IllegalArgumentException.class, () -> GeneralRange.range(ORDERING, 4, lboundType, 2, uboundType)); } } } public void testCreateEmptyRangeOpenOpenFails() { for (Integer i : IN_ORDER_VALUES) { assertThrows( IllegalArgumentException.class,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
fun keyWithSpaceNotPermitted() { assertFailsWith<IllegalArgumentException> { cache.edit("my key") } } @Test fun keyWithNewlineNotPermitted() { assertFailsWith<IllegalArgumentException> { cache.edit("my\nkey") } } @Test fun keyWithCarriageReturnNotPermitted() { assertFailsWith<IllegalArgumentException> { cache.edit("my\rkey") } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0)