- Sort Score
- Num 10 results
- Language All
Results 1121 - 1130 of 1,645 for Because (0.13 seconds)
-
src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java
public void test_getCause() { // Test that the cause is properly set and retrievable ParseException parseException = new ParseException("Query parsing failed"); QueryParseException queryParseException = new QueryParseException(parseException); Throwable cause = queryParseException.getCause(); assertNotNull(cause); assertTrue(cause instanceof ParseException);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java
} assertSame(cause, ex.getCause(), "Cause should be stored and retrievable"); assertSame(cause, ex.getRootCause(), "Deprecated getRootCause should match getCause"); assertEquals(NtStatus.NT_STATUS_UNSUCCESSFUL, ex.getNtStatus(), "Status should default to unsuccessful for message+cause ctor"); } // Interaction: passing a mocked cause should not trigger interactions (nothing to call) @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
assertNotNull(ex); assertTrue(ex instanceof SmbException); assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping"); assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code"); assertNull(ex.getCause(), "cause must be null for int constructor");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/JobProcessingExceptionTest.java
// Test constructor with Throwable cause final Exception cause = new RuntimeException("Root cause"); final JobProcessingException exception = new JobProcessingException(cause); assertNotNull(exception); assertEquals(cause, exception.getCause()); assertEquals("java.lang.RuntimeException: Root cause", exception.getMessage()); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/llm/LlmExceptionTest.java
assertNull(exception.getCause()); } @Test public void test_constructorWithMessageAndCause() { final RuntimeException cause = new RuntimeException("Root cause"); final LlmException exception = new LlmException("Error occurred", cause); assertEquals("Error occurred", exception.getMessage()); assertSame(cause, exception.getCause()); } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 04:19:06 GMT 2026 - 5.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java
reference = MojoExecutionException.class.getSimpleName(); Throwable cause = exception.getCause(); if (cause instanceof IOException) { cause = cause.getCause(); if (cause instanceof ConnectException) { reference = ConnectException.class.getSimpleName(); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage()); verify(supplier, times(1)).get(); verifyNoMoreInteractions(supplier); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
WebApiException exception = new WebApiException(statusCode, cause); assertEquals(statusCode, exception.getStatusCode()); assertEquals(causeMessage, exception.getMessage()); assertEquals(cause, exception.getCause()); } @Test public void test_constructor_withStatusCodeAndNullException() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
@Test public void test_constructor_withServletExceptionWithCause() { // Create a root cause exception String rootCauseMessage = "Root cause error"; Exception rootCause = new Exception(rootCauseMessage); // Create a ServletException with the root cause String servletErrorMessage = "Servlet error with cause"; ServletException servletException = new ServletException(servletErrorMessage, rootCause);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.9K bytes - Click Count (0) -
src/test/java/jcifs/CIFSExceptionTest.java
assertEquals(cause, exception.getCause()); } @Test @DisplayName("Should create CIFSException with cause only") void testCIFSExceptionWithCauseOnly() { // Given Exception cause = new RuntimeException("Root cause"); // When CIFSException exception = new CIFSException(cause); // Then assertNotNull(exception); assertEquals(cause, exception.getCause());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.5K bytes - Click Count (0)