- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,867 for exception (0.04 sec)
-
src/test/java/org/codelibs/curl/CurlExceptionTest.java
assertNull(exception.getCause()); assertTrue(exception instanceof RuntimeException); } @Test public void testConstructorWithMessageAndCause() { String message = "Test error message"; IOException cause = new IOException("IO error"); CurlException exception = new CurlException(message, cause); assertEquals(message, exception.getMessage());
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
@DisplayName("Should handle deeply nested exceptions") void testToStringWithNestedExceptions() { Exception innermost = new IOException("Innermost exception"); Exception middle = new RuntimeException("Middle exception", innermost); Exception rootCause = new IllegalStateException("Outer exception", middle); TransportException exception = new TransportException("Transport failed", rootCause);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
* exception. But there's another race: If the first thread fails with an exception and a second * thread immediately fails with the same exception: * * Thread1: calls setException(), which returns true, context switch before it can CAS * seenExceptionsField to its exception *
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java
import org.apache.maven.api.xml.XmlService; import org.apache.maven.execution.BuildFailure; import org.apache.maven.execution.BuildSuccess; import org.apache.maven.execution.ExecutionEvent; import org.apache.maven.execution.MavenExecutionRequest; import org.apache.maven.execution.MavenSession; import org.apache.maven.execution.ProjectDependencyGraph; import org.apache.maven.execution.ProjectExecutionEvent;
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Oct 16 06:12:36 UTC 2025 - 55.1K bytes - Viewed (0) -
tests/test_exception_handlers.py
from fastapi import Depends, FastAPI, HTTPException from fastapi.exceptions import RequestValidationError from fastapi.testclient import TestClient from starlette.responses import JSONResponse def http_exception_handler(request, exception): return JSONResponse({"exception": "http-exception"}) def request_validation_exception_handler(request, exception): return JSONResponse({"exception": "request-validation"})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 03 22:37:12 UTC 2024 - 2.4K bytes - Viewed (0) -
tests/test_validation_error_context.py
captured_exception.exception = None try: client.get("/items/") except Exception: pass assert captured_exception.exception is not None error_str = str(captured_exception.exception) assert "get_item" in error_str assert "/items/" in error_str def test_websocket_validation_error_includes_endpoint_context(): captured_exception.exception = None try:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 06 12:21:57 UTC 2025 - 4.7K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
} @Test void testDuplicatePluginExecution() throws Exception { SimpleProblemCollector result = validateRaw("duplicate-plugin-execution.xml"); assertViolations(result, 0, 4, 0); assertContains(result.getErrors().get(0), "duplicate execution with id a"); assertContains(result.getErrors().get(1), "duplicate execution with id default");Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 33.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
} // Error case: disconnect throws IOException @Test @DisplayName("disconnect throws IOException when underlying close fails") void disconnect_throwsIOException() throws Exception { doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true); java.io.IOException ex = assertThrows(java.io.IOException.class, () -> transport.disconnect(true, true));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
void testGetSessionKey_ThrowsCIFSException() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); CIFSException exception = new CIFSException("Test exception"); when(mockSmbPipeHandleInternal.getSessionKey()).thenThrow(exception); assertThrows(CIFSException.class, handle::getSessionKey); } }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
executor.shutdown(); // Then - No unexpected exceptions assertTrue(exceptions.isEmpty(), "No unexpected exceptions should occur"); } /** * Test that CopyOnWriteArrayList prevents ConcurrentModificationException. */ @Test public void testNoConcurrentModificationException() throws Exception { // Given
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0)