Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 985 for catch (0.15 sec)

  1. maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                    firstRun = false;
                }
            } catch (ConnectionException e) {
                throw new TransferFailedException("Connection failed: " + e.getMessage(), e);
            } catch (AuthenticationException e) {
                throw new TransferFailedException("Authentication failed: " + e.getMessage(), e);
            } catch (AuthorizationException e) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/ConcurrencyTest.java

                        }
                        catch ( InterruptedException e ) {
                            log.debug("Interrupted1", e);
                        }
                        log.debug("Closed1");
                        this.completed = true;
                    }
                    finally {
                        f.delete();
                    }
                }
                catch ( Exception e ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/MediaTypeTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("te<t/plain");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/pl@in");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/plain;");
          fail();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("te<t/plain");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/pl@in");
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          MediaType.parse("text/plain;");
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            q.element();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.iterator().next();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
          try {
            q.remove();
            shouldThrow();
          } catch (NoSuchElementException success) {
          }
        } catch (InterruptedException ie) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/ThrowablesTest.java

        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
          throwIfUnchecked(new SomeError());
          fail();
        } catch (SomeError expected) {
        }
      }
    
      @SuppressWarnings("ThrowIfUncheckedKnownChecked")
    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)
  7. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
          throwIfUnchecked(new SomeError());
          fail();
        } catch (SomeError expected) {
        }
      }
    
      @SuppressWarnings("ThrowIfUncheckedKnownChecked")
    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)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/CloserTest.java

        IOException exception = new IOException();
    
        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable expected) {
          assertSame(exception, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      /** Invokes {@code latch.}{@link CountDownLatch#await() await()} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      public static void awaitUninterruptibly(CountDownLatch latch) {
        boolean interrupted = false;
        try {
          while (true) {
            try {
              latch.await();
              return;
            } catch (InterruptedException e) {
              interrupted = true;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
Back to top