Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,960 for thrown (0.19 sec)

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

       *     an {@code IOException}.
       * @see Closeables#close
       */
      public static void flush(Flushable flushable, boolean swallowIOException) throws IOException {
        try {
          flushable.flush();
        } catch (IOException e) {
          if (swallowIOException) {
            logger.log(Level.WARNING, "IOException thrown while flushing Flushable.", e);
          } else {
            throw e;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/Closeables.java

            logger.log(Level.WARNING, "IOException thrown while closing Closeable.", e);
          } else {
            throw e;
          }
        }
      }
    
      /**
       * Closes the given {@link InputStream}, logging any {@code IOException} that's thrown rather than
       * propagating it.
       *
       * <p>While it's not safe in the general case to ignore exceptions that are thrown when closing an
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CloseablesTest.java

        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception.
        setupCloseable(true);
        doClose(mockCloseable, true);
      }
    
      public void testClose_closeableWithThrownException() throws IOException {
        // make sure that the exception is thrown if 'swallowException' is false
        // when the mock does throw an exception.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FlushablesTest.java

      public void testFlush_flushableWithEatenException() throws IOException {
        // make sure that no exception is thrown if 'swallowException' is true
        // when the mock does throw an exception on flush.
        setupFlushable(true);
        doFlush(mockFlushable, true, false);
      }
    
      public void testFlush_flushableWithThrownException() throws IOException {
        // make sure that the exception is thrown if 'swallowException' is false
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LoadingCache.java

       *     ExecutionException} is thrown <a
       *     href="https://github.com/google/guava/wiki/CachesExplained#interruption">even if
       *     computation was interrupted by an {@code InterruptedException}</a>.)
       * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the
       *     values
       * @throws ExecutionError if an error was thrown while loading the values
       * @since 11.0
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

      /** Throws an undeclared checked exception. */
      private static void sneakyThrow(Throwable t) {
        class SneakyThrower<T extends Throwable> {
          @SuppressWarnings("unchecked") // not really safe, but that's the point
          void throwIt(Throwable t) throws T {
            throw (T) t;
          }
        }
        new SneakyThrower<Error>().throwIt(t);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/ThrowablesTest.java

        throw new SomeCheckedException();
      }
    
      static void methodThatThrowsOtherChecked() throws SomeOtherCheckedException {
        throw new SomeOtherCheckedException();
      }
    
      static void methodThatThrowsUndeclaredChecked() throws SomeUndeclaredCheckedException {
        throw new SomeUndeclaredCheckedException();
      }
    
      @J2ktIncompatible // Format does not match
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        throw new SomeCheckedException();
      }
    
      static void methodThatThrowsOtherChecked() throws SomeOtherCheckedException {
        throw new SomeOtherCheckedException();
      }
    
      static void methodThatThrowsUndeclaredChecked() throws SomeUndeclaredCheckedException {
        throw new SomeUndeclaredCheckedException();
      }
    
      @J2ktIncompatible // Format does not match
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/ProjectModelResolverTest.java

                    "Expected 'UnresolvableModelException' not thrown.");
            assertNotNull(e.getMessage());
            assertThat(e.getMessage(), containsString("Could not find artifact org.apache:apache:pom:0 in central"));
        }
    
        @Test
        void testResolveParentThrowsUnresolvableModelExceptionWhenNoMatchingVersionFound() throws Exception {
            final Parent parent = new Parent();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Apr 03 17:49:40 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckArgument_simpleMessage_success() {
        Preconditions.checkArgument(true, IGNORE_ME);
      }
    
      public void testCheckArgument_simpleMessage_failure() {
        try {
          Preconditions.checkArgument(false, new Message());
          fail("no exception thrown");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top