- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 928 for clause (0.06 sec)
-
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
try { dns.lookup("google.com") fail<Any>() } catch (ioe: IOException) { assertThat(ioe.message).isEqualTo("google.com") val cause = ioe.cause!! assertThat(cause).isInstanceOf<IOException>() assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes") } } @Test fun failOnBadResponse() { server.enqueue(dnsResponse("00"))Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
Exception exception = assertThrows(Exception.class, () -> { java.lang.reflect.Method method = MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class); method.setAccessible(true); method.invoke(multiChannelManager, null, null); }); // Check that the root cause is CIFSException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbException.java
*/ public SmbException() { } /** * Constructs an SmbException with the specified error code and root cause * * @param errcode the SMB error code * @param rootCause the underlying cause of this exception */ public SmbException(final int errcode, final Throwable rootCause) { super(getMessageByCode(errcode), rootCause);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
StringBuilder buf = new StringBuilder(); Exception cause = new IllegalArgumentException("Root cause"); Exception exception = new RuntimeException("Wrapper exception", cause); monitorTarget.appendException(buf, exception); assertTrue(buf.toString().contains("Wrapper exception")); assertTrue(buf.toString().contains("Root cause")); assertTrue(buf.toString().contains("IllegalArgumentException"));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
"Default message should match the class contract"); assertNull(ex.getCause(), "No cause expected from default constructor"); assertTrue(ex instanceof SmbException, "Should be an SmbException"); // toString should include the class name and the message String ts = ex.toString(); assertTrue(ts.contains("SmbUnsupportedOperationException"), "toString should contain class name");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exception/ScriptEngineException.java
super(message); } /** * Constructor. * @param message The exception message. * @param cause The cause of the exception. */ public ScriptEngineException(final String message, final Throwable cause) { super(message, cause); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolutionException.java
/** * * */ @Deprecated public class GraphConflictResolutionException extends Exception { private static final long serialVersionUID = 2677613140287940255L; public GraphConflictResolutionException() {} public GraphConflictResolutionException(String message) { super(message); } public GraphConflictResolutionException(Throwable cause) { super(cause); }Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferFailedException.java
/** * ArtifactTransferFailedException */ @Deprecated public class ArtifactTransferFailedException extends Exception { public ArtifactTransferFailedException(final String message) { super(message); } public ArtifactTransferFailedException(final String message, final Throwable cause) { super(message, cause); }Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.2K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt
assertEquals("h3", response.negotiatedProtocol) assertTrue(response.content.contains("Disallow")) } catch (ee: ExecutionException) { throw ee.cause?.cause ?: ee.cause!! } } data class Response( val code: Int, val negotiatedProtocol: String, val content: String, ) private fun execute( engine: HttpEngine, executor: ExecutorService,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcErrorTest.java
assertTrue(ex2 instanceof DcerpcError, "DcerpcException should implement DcerpcError"); // Test with root cause Exception rootCause = new Exception("Root cause"); DcerpcException ex3 = new DcerpcException("Error with cause", rootCause); assertEquals(rootCause, ex3.getCause()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0)