Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,216 for catch (0.32 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

                    } catch (final Exception e) {
                        logger.warn("Could not close a process error stream.", e);
                    } finally {
                        latch.countDown();
                    }
                }, "ProcessCloser-error-" + sessionId).start();
                new Thread(() -> {
                    try {
                        CloseableUtil.closeQuietly(process.getOutputStream());
                    } catch (final Exception e) {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/org/codelibs/core/crypto/CachedCipher.java

                    cipher.init(Cipher.ENCRYPT_MODE, sksSpec);
                } catch (final InvalidKeyException e) {
                    throw new InvalidKeyRuntimeException(e);
                } catch (final NoSuchAlgorithmException e) {
                    throw new NoSuchAlgorithmRuntimeException(e);
                } catch (final NoSuchPaddingException e) {
                    throw new NoSuchPaddingRuntimeException(e);
                }
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K 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. maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

                                        Thread.sleep(10);
                                    } catch (InterruptedException ie) {
                                        // ignore
                                    }
                                    file.delete(); // if this fails, forget about it
                                }
                            }
                        } catch (TransferFailedException e) {
                            getLogger()
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 18.9K bytes
    - Viewed (0)
Back to top