Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 492 for RuntimeException (0.24 seconds)

  1. android/guava/src/com/google/common/reflect/Invokable.java

            throws InvocationTargetException, IllegalAccessException {
          try {
            return constructor.newInstance(args);
          } catch (InstantiationException e) {
            throw new RuntimeException(constructor + " failed.", e);
          }
        }
    
        /**
         * If the class is parameterized, such as {@link java.util.ArrayList ArrayList}, this returns
         * {@code ArrayList<E>}.
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/crawler/transformer/AbstractFessFileTransformer.java

         */
        protected ExtractData getExtractData(final Extractor extractor, final InputStream in, final Map<String, String> params) {
            try {
                return extractor.getText(in, params);
            } catch (final RuntimeException e) {
                if (!fessConfig.isCrawlerIgnoreContentException()) {
                    throw e;
                }
                if (logger.isDebugEnabled()) {
                    logger.debug("Could not get a text.", e);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/Optional.java

       *
       * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code
       *     false}); depending on this <i>specific</i> exception type (over the more general {@link
       *     RuntimeException}) is discouraged
       */
      public abstract T get();
    
      /**
       * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java

            try {
                Field field = getField(obj.getClass(), fieldName);
                field.setAccessible(true);
                return field.get(obj);
            } catch (Exception e) {
                throw new RuntimeException("Failed to get field value: " + fieldName, e);
            }
        }
    
        private void setFieldValue(Object obj, String fieldName, Object value) throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

            when(mockContext.getConfig()).thenReturn(mockConfig);
            when(mockConfig.getLanManCompatibility()).thenReturn(3);
            when(mockTransport.getServerEncryptionKey()).thenThrow(new RuntimeException("Test exception"));
    
            assertThrows(SmbException.class, () -> new SMB1SigningDigest(mockTransport, mockAuth));
        }
    
        @Test
        @DisplayName("Test update method with valid data")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

        private void setFieldAccessible(Field field) {
            if (isExceptPrivateAccessible(field)) {
                return;
            }
            try {
                field.setAccessible(true);
            } catch (RuntimeException e) {
                throw new BeanFieldSetAccessibleFailureException(beanClass, field, e);
            }
        }
    
        private boolean isExceptPrivateAccessible(Field field) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  7. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            // Use doThrow for unchecked exception wrapping the CIFSException
            doThrow(new RuntimeException(new CIFSException("session fail"))).when(tree).getSession();
    
            Exception ex = assertThrows(Exception.class, handle::getSessionKey);
            assertTrue(
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private static Type genericReturnType(Class<?> cls, String methodName) {
        try {
          return cls.getMethod(methodName).getGenericReturnType();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    
      public void testTwoStageResolution() {
        class ForTwoStageResolution<A extends Number> {
          <B extends A> void verifyTwoStageResolution() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private static Type genericReturnType(Class<?> cls, String methodName) {
        try {
          return cls.getMethod(methodName).getGenericReturnType();
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
    
      public void testTwoStageResolution() {
        class ForTwoStageResolution<A extends Number> {
          <B extends A> void verifyTwoStageResolution() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/base/Optional.java

       *
       * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code
       *     false}); depending on this <i>specific</i> exception type (over the more general {@link
       *     RuntimeException}) is discouraged
       */
      public abstract T get();
    
      /**
       * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.1K bytes
    - Click Count (0)
Back to Top