Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 2,773 for throwIt (0.34 sec)

  1. src/main/java/jcifs/context/SingletonContext.java

         *
         * @param props the properties to use for initialization
         * @throws CIFSException if the singleton context is already initialized or there is an error during initialization
         */
        public static synchronized final void init(final Properties props) throws CIFSException {
            if (INSTANCE != null) {
                throw new CIFSException("Singleton context is already initialized");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

                        throw new ConfigPropertyNotFoundException("filter.null");
                    default:
                        throw new ConfigPropertyNotFoundException(propertyKey);
                    }
                }
            };
    
            ComponentUtil.register(fessConfig, "fessConfig");
        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

    import okhttp3.internal.withSuppressed
    
    /**
     * This interceptor recovers from failures and follows redirects as necessary. It may throw an
     * [IOException] if the call was canceled.
     */
    class RetryAndFollowUpInterceptor(
      private val client: OkHttpClient,
    ) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportExceptionTest.java

                throw new TransportException(expectedMessage);
            });
    
            // Test throwing and catching with cause
            RuntimeException cause = new RuntimeException("Cause");
            TransportException thrown = assertThrows(TransportException.class, () -> {
                throw new TransportException(cause);
            });
            assertEquals(cause, thrown.getCause());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

         * @param searchAttributes the file attributes to search for
         * @throws CIFSException if an error occurs during initialization
         */
        public DirFileEntryEnumIterator2(final SmbTreeHandleImpl th, final SmbResource parent, final String wildcard,
                final ResourceNameFilter filter, final int searchAttributes) throws CIFSException {
            super(th, parent, wildcard, filter, searchAttributes);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            verify(tree, never()).hasCapability(anyInt()); // not checked on SMB2
        }
    
        // SMB1 path: without CAP_NT_SMBS it should throw SmbUnsupportedOperationException
        @Test
        @DisplayName("watch() SMB1 without capability throws unsupported")
        void watch_smb1_noCapability_throwsUnsupported() throws Exception {
            when(handle.isValid()).thenReturn(true);
            when(handle.getTree()).thenReturn(tree);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testSuccessful() throws Exception {
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      public void testFailed() throws Exception {
        Exception cause = new Exception();
        assertThat(future.setException(cause)).isTrue();
        assertFailed(future, cause);
      }
    
      public void testCanceled() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. docs/features/https.md

                      .build())
              .build();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top