- Sort Score
- Num 10 results
- Language All
Results 701 - 710 of 2,175 for Exception (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
return response.request().newBuilder() .header("Authorization", credential) .build(); }) .build(); } public void run() throws Exception { Request request = new Request.Builder() .url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Aug 12 07:26:27 GMT 2021 - 1.9K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java
import okhttp3.tls.HandshakeCertificates; import okhttp3.tls.HeldCertificate; /** * Create an HTTPS server with a self-signed certificate that OkHttp trusts. */ public class HttpsServer { public void run() throws Exception { HeldCertificate localhostCertificate = new HeldCertificate.Builder() .addSubjectAlternativeName("localhost") .build(); HandshakeCertificates serverCertificates = new HandshakeCertificates.Builder()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 02 14:04:37 GMT 2023 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcHandleTest.java
assertThrows(Exception.class, () -> DcerpcHandle.getHandle("ncacn_np:\\\\server[endpoint=\\pipe\\srvsvc]", mockContext)); } @Test @DisplayName("Should reject unsupported protocols") void testGetHandleUnsupportedProtocol() { // When/Then: Should throw exception for unsupported protocols
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/ExtensionResolutionException.java
* under the License. */ package org.apache.maven.cling.extensions; import org.apache.maven.api.cli.extensions.CoreExtension; /** * Exception occurring trying to resolve a plugin. * */ public class ExtensionResolutionException extends Exception { private final CoreExtension extension; public ExtensionResolutionException(CoreExtension extension, Throwable cause) { super(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Nov 08 08:49:11 GMT 2024 - 1.4K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/relatedquery/ApiAdminRelatedqueryAction.java
body.crudMode = CrudMode.CREATE; final RelatedQuery relatedQuery = getRelatedQuery(body).map(entity -> { try { relatedQueryService.store(entity); } catch (final Exception e) { logger.warn("Failed to process a request.", e); throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e))); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/ReflectionTest.java
assertThat(Reflection.getPackageName(Map.Entry.class)).isEqualTo("java.util"); } public void testNewProxy() throws Exception { Runnable runnable = Reflection.newProxy(Runnable.class, X_RETURNER); assertThat(runnable.toString()).isEqualTo("x"); } public void testNewProxyCantWorkOnAClass() throws Exception { assertThrows( IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
* Test that password comparison is constant-time by comparing execution times * for passwords that differ at different positions. */ @Test public void testConstantTimePasswordComparison() throws Exception { char[] basePassword = "supersecretpassword123456789".toCharArray(); char[] diffAtStart = "Xupersecretpassword123456789".toCharArray(); char[] diffAtMiddle = "supersecretpXssword123456789".toCharArray();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
byte[] largeMessage = new byte[50]; Exception exception = assertThrows(CIFSException.class, () -> context.encryptMessage(largeMessage, 2L)); assertTrue(exception.getMessage().contains("rotation") || exception.getMessage().contains("exceeded"), "Should indicate key rotation issue: " + exception.getMessage()); context.close(); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/transformer/FessFileTransformerTest.java
import org.apache.groovy.util.Maps; import org.codelibs.fess.Constants; import org.codelibs.fess.crawler.serializer.DataSerializer; import org.codelibs.fess.crawler.util.FieldConfigs; import org.codelibs.fess.exception.FessSystemException; import org.codelibs.fess.helper.ProtocolHelper; import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.unit.UnitFessTestCase; import org.codelibs.fess.util.ComponentUtil;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 14.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbFileFilterTest.java
return true; } } @Nested @DisplayName("Happy path – accept is called and returns true") class HappyPath { @Test void acceptWithMockedFile() throws Exception { SmbFile mockFile = mock(SmbFile.class); when(mockFile.getPath()).thenReturn("/share/file.txt"); assertTrue(ALWAYSACTIVE.accept(mockFile)); } } @NestedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.2K bytes - Click Count (0)