Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 364 for RuntimeException (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/ExecutionList.java

          reversedList = reversedList.next;
        }
      }
    
      /**
       * Submits the given runnable to the given {@link Executor} catching and logging all {@linkplain
       * RuntimeException runtime exceptions} thrown by the executor.
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void executeListener(Runnable runnable, Executor executor) {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx);
    
            // Act & Assert: calling release without prior acquire drops usage below zero
            RuntimeException ex = assertThrows(RuntimeException.class, trace::release);
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Usage count dropped below zero"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            @Test
            public void testConstructorWithIllegalShareAccess() {
                // Test that constructor throws RuntimeException for illegal shareAccess parameter
                String url = "smb1://server/share/file.txt";
                int illegalShareAccess = 99; // Not a valid combination
                assertThrows(RuntimeException.class, () -> new SmbFile(url, null, illegalShareAccess));
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/MIENameTest.java

        private static byte[] oidDer() {
            // Full DER encoding of the OID
            try {
                return testOid().toASN1Primitive().getEncoded();
            } catch (java.io.IOException e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Parses a valid buffer and exposes fields")
        void parseValidBuffer() {
            // Arrange
            String name = "******@****.***";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/BouncyCastleSocketAdapter.kt

            override fun create(sslSocket: SSLSocket): SocketAdapter = BouncyCastleSocketAdapter()
          }
    
        val isSupported: Boolean =
          try {
            // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
            Class.forName("org.bouncycastle.jsse.provider.BouncyCastleJsseProvider", false, javaClass.classLoader)
    
            true
          } catch (_: ClassNotFoundException) {
            false
          }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/SuggestJobTest.java

                lastCommandList = new ArrayList<>(cmdList);
    
                if (exception instanceof RuntimeException) {
                    throw (RuntimeException) exception;
                } else if (exception instanceof InterruptedException) {
                    Thread.currentThread().interrupt();
                    throw new RuntimeException(exception);
                }
    
                return new MockJobProcess(exitValue, output);
            }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/exception/UserRoleLoginException.java

     * This exception is used to indicate that a user does not have the required role
     * to access a specific action or resource.
     *
     */
    public class UserRoleLoginException extends RuntimeException {
    
        private static final long serialVersionUID = 1L;
    
        /** The action class that requires specific user roles */
        private final Class<?> actionClass;
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        assertThat(memoizedSupplier.toString())
            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
        // Should get an exception when we try to serialize.
        RuntimeException ex = assertThrows(RuntimeException.class, () -> reserialize(memoizedSupplier));
        assertThat(ex).hasCauseThat().isInstanceOf(NotSerializableException.class);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        peekingIterator.remove();
        assertEquals("Should have removed an element", 2, list.size());
        assertFalse("Second element should be gone", list.contains("B"));
      }
    
      static class ThrowsAtEndException extends RuntimeException {
        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
       * fetch the extra elements, it throws an unchecked exception.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

        }
    
        // Test execute with exception
        public void test_execute_withException() {
            thumbnailJob.numOfThreads(2);
    
            testProcessHelper.throwException = new RuntimeException("Unexpected error");
    
            String result = thumbnailJob.execute();
    
            assertNotNull(result);
            assertNotNull(thumbnailJob.sessionId);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top