- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,885 for Exception (0.11 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
} abstract boolean isPermitted(Exception exception); void assertPermitted(Exception exception) { if (!isPermitted(exception)) { String message = "Exception " + exception.getClass().getSimpleName() + " was thrown; expected " + getMessage(); throw new AssertionError(message, exception); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java
@Param Result result; @Param ExceptionType exceptionType; /** * The number of other exception types in the cache of known-good exceptions and the number of * other {@code ClassValue} entries for the exception type to be tested. This lets us evaluate * whether our solution scales to use with multiple exception types and to whether it is affected
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Mar 22 03:01:34 UTC 2022 - 6.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
private static boolean hasConstructorUsableByGetChecked( Class<? extends Exception> exceptionClass) { try { Exception unused = newWithCause(exceptionClass, new Exception()); return true; } catch (Throwable t) { // sneaky checked exception return false; } } private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.9K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractorTest.java
* * @throws Exception if any. */ @Test public void testIllegalMappedType() throws Exception { try { ReflectionValueExtractor.evaluate("h.value(key)", new ValueHolder("string")); } catch (Exception e) { // TODO assert exception message } } /** * <p>testTrimRootToken.</p> * * @throws Exception if any. */ @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 16.9K bytes - Viewed (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java
private final int columnNumber; private final String message; private final Exception exception; private final Severity severity; /** * Creates a new problem with the specified message and exception. * Either {@code message} or {@code exception} is required * * @param message The message describing the problem, may be {@code null}.
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
* @throws Exception */ @Test public void testCopy_mapToNewBean() throws Exception { final BeanMap src = new BeanMap(); src.put("aaa", "aaa"); final MyBean dest = BeanUtil.copyMapToNewBean(src, MyBean.class); assertThat(dest.aaa, is("aaa")); } /** * @throws Exception */ @Test public void testCopy_mapToNewMap() throws Exception {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* @param exceptionType the exception type that triggers use of {@code fallback}. The exception * type is matched against the input's exception. "The input's exception" means the cause of * the {@link ExecutionException} thrown by {@code input.get()} or, if {@code get()} throws a * different kind of exception, that exception itself. To avoid hiding bugs and other
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 13:13:32 UTC 2024 - 64.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java
* */ public class ShortConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToShort() throws Exception { assertEquals(new Short("1000"), ShortConversionUtil.toShort("1,000")); } /** * @throws Exception */ public void testToPrimitiveShort() throws Exception { assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000")); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java
// Exceptions // ------------------------------------------------------------------------ public boolean hasExceptions() { return exceptions != null && !exceptions.isEmpty(); } public List<Exception> getExceptions() { return exceptions == null ? Collections.emptyList() : Collections.unmodifiableList(exceptions); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
protected void createLocalArtifact(Artifact artifact) throws Exception { createArtifact(artifact, localRepository()); } protected void createRemoteArtifact(Artifact artifact) throws Exception { createArtifact(artifact, remoteRepository()); } protected void createArtifact(Artifact artifact, ArtifactRepository repository) throws Exception { String path = repository.pathOf(artifact);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 13.8K bytes - Viewed (0)