- Sort Score
- Num 10 results
- Language All
Results 651 - 660 of 3,747 for throwIt (0.05 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java
e.printStackTrace(); } @Override public void onResponse(Call call, Response response) throws IOException { try (ResponseBody responseBody = response.body()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); Headers responseHeaders = response.headers(); for (int i = 0, size = responseHeaders.size(); i < size; i++) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun May 22 01:29:42 GMT 2016 - 1.9K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
if (!response.isSuccessful) throw IOException("Unexpected code $response") println(response.body.string()) } } private class ProgressRequestBody( private val delegate: RequestBody, private val progressListener: ProgressListener, ) : RequestBody() { override fun contentType() = delegate.contentType() @Throws(IOException::class)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
@Test @DisplayName("toString with null challenge throws NPE") void testToStringWithNullChallengeThrowsNPE() { UniAddress dc = mock(UniAddress.class); when(dc.toString()).thenReturn("ANYSERVER"); NtlmChallenge nc = new NtlmChallenge(null, dc); // Hexdump.toHexString will throw NPE when accessing challenge.lengthCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonAgainstSchemaTask.java
String.format("Verification failed: %d files contained %d violations", errors.keySet().size(), errors.values().size()) ); throw new JsonSchemaException(sb.toString()); } } private JsonSchema buildSchemaObject(File jsonSchemaOnDisk) throws IOException { final ObjectMapper jsonMapper = new ObjectMapper(); final SchemaValidatorsConfig config = new SchemaValidatorsConfig();
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Jul 28 11:09:58 GMT 2021 - 5.4K bytes - Click Count (0) -
src/main/java/jcifs/http/NtlmHttpFilter.java
* @return True if the negotiation is complete, otherwise false * @throws IOException if an I/O error occurs * @throws ServletException if a servlet error occurs */ protected NtlmPasswordAuthentication negotiate(final HttpServletRequest req, final HttpServletResponse resp, final boolean skipAuthentication) throws IOException, ServletException { Address dc; String msg;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ReflectionFreeAssertThrows.java
return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.9K bytes - Click Count (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionIT.java
class ComparableVersionIT { @Test void test() throws Exception { Files.walkFileTree(Paths.get("target"), new SimpleFileVisitor<Path>() { Pattern mavenArtifactJar = Pattern.compile("maven-artifact-[\\d.]+(-SNAPSHOT)?\\.jar"); @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { String filename = file.getFileName().toString();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java
* * @throws NullPointerException if {@code seg} is {@code null}. */ @Nonnull public Path resolve(String seg) { requireNonNull(seg, "seg"); return directory.resolve(seg).normalize(); } /** * Changes current cwd, if the new path is existing directory. * * @throws NullPointerException if {@code seg} is {@code null}.Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Mar 24 14:09:05 GMT 2025 - 2.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
* </p> * * @param bytes the byte array (must not be {@literal null}) * @return the deserialized object * @throws IORuntimeException if an I/O error occurs or if a class is rejected by the filter * @throws ClassNotFoundRuntimeException if the class of a serialized object cannot be found */ public static Object fromBinaryToObject(final byte[] bytes) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 8.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableListMultimap.java
} /** * Guaranteed to throw an exception and leave the multimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public final ImmutableList<V> removeAll(@Nullable Object key) { throw new UnsupportedOperationException(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 19.3K bytes - Click Count (0)