Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 358 for RuntimeException (0.52 sec)

  1. android/guava/src/com/google/common/io/Closer.java

       */
      public RuntimeException rethrow(Throwable e) throws IOException {
        checkNotNull(e);
        thrown = e;
        throwIfInstanceOf(e, IOException.class);
        throwIfUnchecked(e);
        throw new RuntimeException(e);
      }
    
      /**
       * Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

              protected void startUp() throws Exception {
                super.startUp();
                throw exception;
              }
            };
        assertEquals(0, service.startUpCalled);
        RuntimeException e =
            assertThrows(RuntimeException.class, () -> service.startAsync().awaitRunning());
        assertThat(e).hasCauseThat().isSameInstanceAs(exception);
        assertEquals(1, service.startUpCalled);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          immediateFailedFuture(CHECKED_EXCEPTION);
      static final RuntimeException UNCHECKED_EXCEPTION = new RuntimeException("mymessage");
      static final Future<String> FAILED_FUTURE_UNCHECKED_EXCEPTION =
          immediateFailedFuture(UNCHECKED_EXCEPTION);
      static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException();
      static final OtherThrowable OTHER_THROWABLE = new OtherThrowable();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/ClassDoc.groovy

            if (!table) {
                throw new RuntimeException("Section '$title' does not contain a <table> element.")
            }
            if (!table.thead[0]) {
                throw new RuntimeException("Table '$title' does not contain a <thead> element.")
            }
            if (!table.thead[0].tr[0]) {
                throw new RuntimeException("Table '$title' does not contain a <thead>/<tr> element.")
            }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            // Create a root cause exception
            RuntimeException rootCause = new RuntimeException("Root cause error");
            TransportException exception = new TransportException(rootCause);
    
            // Verify the exception has the correct cause
            assertNotNull(exception);
            assertEquals(rootCause, exception.getCause());
            assertEquals("java.lang.RuntimeException: Root cause error", exception.getMessage());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
            request = new Smb2SetInfoRequest(mockConfig, testFileId);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            for (int i = 0; i < 3; i++) {
                final int index = i;
                try {
                    circuitBreaker.executeWithCircuitBreaker(() -> {
                        throw new RuntimeException("Test failure " + index);
                    });
                    fail("Should have thrown exception");
                } catch (CIFSException e) {
                    // Expected
                }
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

        }
    
        @Test
        void testHandleExceptionSelfReferencing() {
            RuntimeException boom3 = new RuntimeException("BOOM3");
            RuntimeException boom2 = new RuntimeException("BOOM2", boom3);
            RuntimeException boom1 = new RuntimeException("BOOM1", boom2);
            boom3.initCause(boom1);
    
            DefaultExceptionHandler handler = new DefaultExceptionHandler();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom")));
    
            // Act & Assert: the exception is propagated and interaction recorded once
            RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get);
            assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
            assertEquals("boom", thrown.getCause().getMessage());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/GcFinalization.java

        awaitClear(ref);
    
        // Hope to catch some stragglers queued up behind our finalizable object
        System.runFinalization();
      }
    
      private static RuntimeException formatRuntimeException(String format, Object... args) {
        return new RuntimeException(String.format(Locale.ROOT, format, args));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top