Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,170 for catch (0.16 sec)

  1. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckPositive_maxInt() {
        MathPreconditions.checkPositive("int", Integer.MAX_VALUE);
      }
    
      public void testCheckPositive_minInt() {
        try {
          MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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 May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

        future.cancel(true);
        try {
          getUnchecked(future);
          fail();
        } catch (CancellationException expected) {
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionChecked() {
        try {
          getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      @Throws(IOException::class)
      fun flushRequest() {
        try {
          codec.flushRequest()
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      @Throws(IOException::class)
      fun finishRequest() {
        try {
          codec.finishRequest()
        } catch (e: IOException) {
          eventListener.requestFailed(call, e)
          trackFailure(e)
          throw e
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  9. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        bestGetCheckedTypeValidator().validateClass(exceptionClass);
        try {
          return future.get(timeout, unit);
        } catch (InterruptedException e) {
          currentThread().interrupt();
          throw newWithCause(exceptionClass, e);
        } catch (TimeoutException e) {
          throw newWithCause(exceptionClass, e);
        } catch (ExecutionException e) {
          wrapAndThrowExceptionOrError(e.getCause(), exceptionClass);
          throw new AssertionError();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ArrayTableTest.java

          table.at(1, 3);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          table.at(1, -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          table.at(3, 2);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          table.at(-1, 2);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top