- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 2,684 for catch (0.06 seconds)
-
compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java
StringWriter stringWriter = new StringWriter(1024 * 4); try { toolchainsWriter.write(stringWriter, null, toolchains); } catch (IOException e) { throw new IllegalStateException("Failed to serialize toolchains to memory", e); } String serializedToolchains = stringWriter.toString();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Mar 05 09:37:42 GMT 2025 - 7.3K bytes - Click Count (0) -
docs/bucket/lifecycle/setup_ilm_transition.sh
#!/usr/bin/env bash set -x trap 'catch $LINENO' ERR # shellcheck disable=SC2120 catch() { if [ $# -ne 0 ]; then echo "error on line $1" for site in sitea siteb; do echo "$site server logs =========" cat "/tmp/${site}_1.log" echo "===========================" cat "/tmp/${site}_2.log" done fi echo "Cleaning up instances of MinIO" pkill minio pkill -9 minio rm -rf /tmp/multisiteaCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Oct 31 22:10:24 GMT 2024 - 2.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
// Check that it's a RuntimeException and can be thrown try { throw exception; } catch (DataStoreException e) { assertEquals("Serialization test", e.getMessage()); } catch (Exception e) { fail("Should have caught DataStoreException"); } } @Test public void test_inheritance() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 05:56:45 GMT 2025 - 15.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/gcs/GcsClient.java
} catch (final Exception e) { responseData.setMimeType(mimeTypeHelper.getContentType(null, blob.getName())); } } } catch (final CrawlerSystemException e) { CloseableUtil.closeQuietly(responseData); throw e; } catch (final Exception e) { CloseableUtil.closeQuietly(responseData);Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Dec 11 08:38:29 GMT 2025 - 17.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Internal.java
*/ static long toNanosSaturated(Duration duration) { // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for // durations longer than approximately +/- 292 years). try { return duration.toNanos(); } catch (ArithmeticException tooBig) { return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE; } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Nov 04 17:24:58 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
String expectedMessage = "Theme loading error"; try { throw new ThemeException(expectedMessage); } catch (ThemeException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) { fail("Should have caught ThemeException, but caught: " + e.getClass()); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java
// fail("Exception was not thrown"); } catch (UnsupportedSearchException e) { assertEquals(expectedMessage, e.getMessage()); assertNotNull(e.getStackTrace()); } } @Test public void test_throwAndCatchAsFessSystemException() { // Test catching as parent exception type String expectedMessage = "Parent catch test"; try {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java
scheduleRecoveryWithTransport(failedChannel, state, testTransport); } else { // Remove channel after max retries removeChannel(failedChannel); } } catch (Exception e) { // Recovery not possible, remove synchronously removeChannel(failedChannel); return; } } /** * Shutdown the failover handler */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 11.6K bytes - Click Count (0) -
src/main/java/jcifs/util/Crypto.java
} catch (final NoSuchAlgorithmException e) { throw new CIFSUnsupportedCryptoException(e); } } /** * Get an MD5 message digest instance. * @return MD5 digest instance */ public static MessageDigest getMD5() { try { return MessageDigest.getInstance("MD5"); } catch (final NoSuchAlgorithmException e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.7K bytes - Click Count (0)