- Sort Score
- Num 10 results
- Language All
Results 551 - 560 of 2,371 for Try (0.08 seconds)
-
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
List<FactoryMethodReturnsNullException> nullErrors = new ArrayList<>(); // Try factories with the greatest number of parameters. for (Invokable<?, ?> factory : factories) { if (factory.getParameters().size() == numberOfParameters) { try { testEqualsUsing(factory); return; } catch (ParameterNotInstantiableException e) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 32.5K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt
override fun isSupported(): Boolean = Companion.isSupported() @SuppressLint("NewApi") override fun getSelectedProtocol(sslSocket: SSLSocket): String? = try { // SSLSocket.getApplicationProtocol returns "" if application protocols values will not // be used. Observed if you didn't specify SSLParameters.setApplicationProtocols
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 10 09:36:53 GMT 2026 - 2.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java
AtomicReference<Exception> failure = new AtomicReference<>(); while (true) { try { failure.set(null); systemRegistry.cleanUp(); Thread commandThread = new Thread(() -> { try { systemRegistry.execute(reader.readLine(
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 10.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java
@CanIgnoreReturnValue private boolean setCount(E element, int count) { return getMultiset().setCount(element, getMultiset().count(element), count); } private void assertSetCountNegativeOldCount() { try { getMultiset().setCount(e3(), -1, 1); fail("calling setCount() with a negative oldCount should throw IllegalArgumentException"); } catch (IllegalArgumentException expected) { } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0) -
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that the handle is automatically closed in a try-with-resources statement. * @throws Exception if an error occurs. */ @Test public void testTryWithResources() throws Exception { // This test ensures that any implementation of SmbPipeHandle can be used in a try-with-resources block. try (SmbPipeHandle handle = smbPipeHandle) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/role/ApiAdminRoleAction.java
throwValidationErrorApi(messages -> { messages.addErrorsCrudFailedToCreateInstance(GLOBAL); }); return null; }); try { roleService.store(entity); } catch (final Exception e) { logger.warn("Failed to process a request.", e);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java
} BeanExpressionEvaluator evaluator = new BeanExpressionEvaluator(request); ObjectWithFieldsConverter converter = new EnhancedConfigurationConverter(); try { converter.processConfiguration( converterLookup, request.getBean(), classLoader, plexusConfig, evaluator, null); } catch (ComponentConfigurationException e) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java
path = request.getSystemProperties().getProperty("user.home") + File.separator + ".m2"; } localRepositoryPath = new File(path, "repository").getAbsolutePath(); } try { return repositorySystem.createLocalRepository(new File(localRepositoryPath)); } catch (Exception e) { throw new MavenExecutionRequestPopulationException("Cannot create local repository.", e);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 8.4K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
static <V extends @Nullable Object, X extends Exception> V getChecked( GetCheckedTypeValidator validator, Future<V> future, Class<X> exceptionClass) throws X { validator.validateClass(exceptionClass); try { return future.get(); } catch (InterruptedException e) { currentThread().interrupt(); throw newWithCause(exceptionClass, e); } catch (ExecutionException e) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/TestingConventionsTasks.java
.filter(this::implementsNamingConvention) .collect(Collectors.toSet()); } @TaskAction public void doCheck() throws IOException { final String problems; try ( URLClassLoader isolatedClassLoader = new URLClassLoader( getTestsClassPath().getFiles().stream().map(this::fileToUrl).toArray(URL[]::new) ) ) {
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 17.6K bytes - Click Count (0)