- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 307 for throwing (0.06 sec)
-
src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching PluginException String expectedMessage = "Plugin loading failed"; try { throw new PluginException(expectedMessage); } catch (PluginException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
assertEquals(middleCause, exception.getCause()); assertEquals(innerCause, exception.getCause().getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception int expectedStatusCode = 403; String expectedMessage = "Access denied"; try { throw new WebApiException(expectedStatusCode, expectedMessage);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ThemeExceptionTest.java
assertNotNull(exception); assertEquals(longMessage, exception.getMessage()); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Theme loading error"; try { throw new ThemeException(expectedMessage); } catch (ThemeException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/NullArgumentException.java
*/ package org.codelibs.core.exception; import static org.codelibs.core.collection.ArrayUtil.asArray; /** * Exception thrown when an argument is null. * * Intended to be used instead of throwing {@link NullPointerException}. * * @author wyukawa */ public class NullArgumentException extends ClIllegalArgumentException { /** * */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientExceptionTest.java
foundTestMethod = true; break; } } assertTrue(foundTestMethod); } public void test_throwAndCatch() { // Test throwing and catching the exception String message = "Throw and catch test"; try { throw new SearchEngineClientException(message); } catch (SearchEngineClientException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/base/SneakyThrows.java
* throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java
assertEquals(middleCause, topException.getCause()); assertEquals(rootCause, topException.getCause().getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception String componentName = "cacheManager"; try { throw new ContainerNotAvailableException(componentName); } catch (ContainerNotAvailableException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AsyncFunction.java
* Future} need not be {@linkplain Future#isDone done}, making {@code AsyncFunction} suitable for * asynchronous derivations. * * <p>Throwing an exception from this method is equivalent to returning a failing {@code Future}. */ ListenableFuture<O> apply(@ParametricNullness I input) throws Exception;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AsyncCallable.java
/** * Computes a result {@code Future}. The output {@code Future} need not be {@linkplain * Future#isDone done}, making {@code AsyncCallable} suitable for asynchronous derivations. * * <p>Throwing an exception from this method is equivalent to returning a failing {@link * ListenableFuture}. */ ListenableFuture<V> call() throws Exception;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.5K bytes - Viewed (0)