- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 667 for cause (0.13 sec)
-
guava/src/com/google/common/util/concurrent/AbstractService.java
*/ protected final void notifyFailed(Throwable cause) { checkNotNull(cause); monitor.enter(); try { State previous = state(); switch (previous) { case NEW: case TERMINATED: throw new IllegalStateException("Failed while in state:" + previous, cause); case RUNNING: case STARTING: case STOPPING:
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
void testGetRootCause() { Exception rootCause = new IllegalStateException("Test root cause"); TransportException exception = new TransportException("Message", rootCause); assertEquals(rootCause, exception.getRootCause()); } @Test @DisplayName("Should return null when no root cause") void testGetRootCauseWhenNull() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java
final Exception cause = new RuntimeException("Underlying error"); // Execute final InvalidQueryException exception = new InvalidQueryException(null, message, cause); // Verify assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); assertNull(exception.getMessageCode());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
} /** * Gets a {@code Throwable} cause chain as a list. The first entry in the list will be {@code * throwable} followed by its cause hierarchy. Note that this is a snapshot of the cause chain and * will not reflect any subsequent changes to the cause chain. * * <p>Here's an example of how it can be used to find specific types of exceptions in the cause * chain: * * <pre>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbOperationException.java
private long extractNtStatus(Throwable cause) { if (cause instanceof SmbException) { return ((SmbException) cause).getNtStatus(); } return 0; } private String extractServerMessage(Throwable cause) { if (cause instanceof SmbException) { // Try to get server message from SMB exception return cause.getMessage(); } return null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java
final Exception cause = new RuntimeException("Test cause"); // Execute final SsoMessageException exception = new SsoMessageException(null, message, cause); // Verify assertNotNull(exception); assertEquals(message, exception.getMessage()); assertEquals(cause, exception.getCause()); assertNull(exception.getMessageCode()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
assertSame(cause, getRootCause(exception)); } public void testGetRootCause_loop() { Exception cause = new Exception(); Exception exception = new Exception(cause); cause.initCause(exception); IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getRootCause(cause)); assertThat(expected).hasCauseThat().isSameInstanceAs(cause); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java
// Test constructor with null component name and valid cause Throwable cause = new RuntimeException("Test cause"); ContainerNotAvailableException exception = new ContainerNotAvailableException(null, cause); assertEquals("null is not available.", exception.getMessage()); assertEquals(cause, exception.getCause()); assertNull(exception.getComponentName()); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java
} /** * Test constructor with cause only */ public void test_constructor_withCause() { Exception cause = new IllegalArgumentException("Root cause"); CrawlerSystemException exception = new CrawlerSystemException(cause); assertNotNull(exception); assertSame(cause, exception.getCause()); // When constructed with cause only, message should be cause's toString()
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 20K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
assertSame(cause, getRootCause(exception)); } public void testGetRootCause_loop() { Exception cause = new Exception(); Exception exception = new Exception(cause); cause.initCause(exception); IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getRootCause(cause)); assertThat(expected).hasCauseThat().isSameInstanceAs(cause); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0)