- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 162 for getCauses (0.15 sec)
-
android/guava/src/com/google/common/eventbus/Subscriber.java
} catch (IllegalAccessException e) { throw new Error("Method became inaccessible: " + event, e); } catch (InvocationTargetException e) { if (e.getCause() instanceof Error) { throw (Error) e.getCause(); } throw e; } } /** Gets the context for the given event. */ private SubscriberExceptionContext context(Object event) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 4.7K bytes - Viewed (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
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/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
assertEquals(message, exception.getMessage()); assertNotNull(exception.getStackTrace()); assertTrue(exception.getStackTrace().length > 0); assertNull(exception.getCause()); } public void test_constructor_withNullMessage() { // Test with null message ResultOffsetExceededException exception = new ResultOffsetExceededException(null);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
} @GwtIncompatible // getCauseAs(Throwable, Class) public void testGetCauseAs() { SomeCheckedException cause = new SomeCheckedException(); SomeChainingException thrown = new SomeChainingException(cause); assertThat(thrown).hasCauseThat().isSameInstanceAs(cause); assertThat(getCauseAs(thrown, SomeCheckedException.class)).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/jcifs/dcerpc/DcerpcExceptionTest.java
assertEquals(message, exception.getMessage(), "Message should match the input."); assertEquals(cause, exception.getCause(), "Cause should match the input."); assertEquals(cause, exception.getRootCause(), "getRootCause() should return the same cause as getCause()."); } /** * Test getErrorCode() method. */ @Test void testGetErrorCode() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
} catch (java.lang.reflect.InvocationTargetException e) { // We expect this to fail, but it should be a CIFSException, not a NullPointerException assertTrue(e.getCause() instanceof CIFSException); assertTrue(e.getCause().getMessage().contains("Failed to create multi-channel transport")); } } @Test @DisplayName("MultiChannelManager should shutdown cleanly") void testShutdown() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
// When SmbException finalException = new SmbException("Final error", intermediateCause); // Then assertEquals(intermediateCause, finalException.getCause()); assertEquals(rootCause, finalException.getCause().getCause()); } @Test @DisplayName("Should handle null message gracefully") void testNullMessage() { // When/Then assertDoesNotThrow(() -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java
assertThat(clIllegalStateException.getMessage(), is("hoge")); assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class)); } /** * Test method for * {@link org.codelibs.core.exception.ClIllegalStateException#SIllegalStateException(java.lang.Throwable)} * . */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
throw e; } catch (ExecutionException e) { wrapAndThrowRuntimeExecutionExceptionOrError(e.getCause()); throw new AssertionError(); } } private static Exception throwCause(Exception e, boolean combineStackTraces) throws Exception { Throwable cause = e.getCause(); if (cause == null) { throw e; } if (combineStackTraces) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbAuthExceptionTest.java
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"); assertNull(ex.getRootCause(), "rootCause must be null for int constructor"); } /** * Validate message-only constructor with both null and empty messages.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0)