Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1461 - 1470 of 2,371 for Try (0.05 seconds)

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

       *
       * @throws ExceptionInInitializerError if an exception is thrown during initialization of a class
       */
      public static void initialize(Class<?>... classes) {
        for (Class<?> clazz : classes) {
          try {
            Class.forName(clazz.getName(), true, clazz.getClassLoader());
          } catch (ClassNotFoundException e) {
            throw new AssertionError(e);
          }
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbPipeInputStream.java

         * "peek named pipe" operation and return the number of available bytes
         * on the server.
         */
        @Override
        public int available() throws IOException {
            try (SmbFileHandleImpl fd = this.handle.ensureOpen(); SmbTreeHandleImpl th = fd.getTree()) {
                if (th.isSMB2()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java

                    // eaten, handled by repo system
                } else {
                    request.addMetadata(new MetadataBridge(metadata));
                }
            }
    
            try {
                repoSystem.install(session, request);
            } catch (InstallationException e) {
                throw new ArtifactInstallationException(e.getMessage(), e);
            }
    
            /*
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/context/AbstractCIFSContext.java

            }
            return false;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Thread#run()
         */
        @Override
        public void run() {
            try {
                this.closed = true;
                close();
            } catch (final CIFSException e) {
                log.warn("Failed to close context on shutdown", e);
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/storage/StorageClientFactory.java

         * @return parsed StorageType
         */
        private static StorageType parseStorageType(final String typeStr) {
            final String upper = typeStr.toUpperCase(Locale.ROOT);
            try {
                return StorageType.valueOf(upper);
            } catch (final IllegalArgumentException e) {
                logger.warn("Unknown storage type: {}, defaulting to S3_COMPAT", typeStr);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

       */
      @SuppressWarnings("nullness") // test of a bogus call
      static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) {
        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

        assertIteratorIsUnmodifiable(Splitter.on(Pattern.compile(",")).split("a,b").iterator());
      }
    
      private void assertIteratorIsUnmodifiable(Iterator<?> iterator) {
        iterator.next();
        try {
          iterator.remove();
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testSplitterIterableIsLazy_char() {
        assertSplitterIterableIsLazy(COMMA_SPLITTER);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 29.7K bytes
    - Click Count (0)
  8. configure.py

    
    def is_s390x():
      return platform.machine() == 's390x'
    
    
    def is_cygwin():
      return platform.system().startswith('CYGWIN_NT')
    
    
    def get_input(question):
      try:
        try:
          answer = raw_input(question)
        except NameError:
          answer = input(question)  # pylint: disable=bad-builtin
      except EOFError:
        answer = ''
      return answer
    
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 19 16:32:04 GMT 2025
    - 48.3K bytes
    - Click Count (0)
  9. fastapi/utils.py

                "pydantic.v1 models are no longer supported by FastAPI."
                f" Please update the response model {type_!r}."
            )
        field_info = field_info or FieldInfo(annotation=type_, default=default, alias=alias)
        try:
            return v2.ModelField(mode=mode, name=name, field_info=field_info)
        except PydanticSchemaGenerationError:
            raise fastapi.exceptions.FastAPIError(
                _invalid_args_message.format(type_=type_)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddTester.java

        expectUnchanged();
        expectMissing(e3());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_unsupportedPresent() {
        try {
          assertFalse("add(present) should return false or throw", collection.add(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6K bytes
    - Click Count (0)
Back to Top