- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 406 for Catching (0.04 sec)
-
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching the exception final String errorMessage = "Data store operation failed"; try { throw new DataStoreException(errorMessage); } catch (DataStoreException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
foundTestMethod = true; break; } } assertTrue(foundTestMethod); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Offset limit exceeded: 10000"; try { throw new ResultOffsetExceededException(expectedMessage); } catch (ResultOffsetExceededException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.6K 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/jcifs/util/transport/TransportExceptionTest.java
public void testThrowAndCatch() { // Test throwing and catching with message String expectedMessage = "Transport failed"; assertThrows(TransportException.class, () -> { throw new TransportException(expectedMessage); }); // Test throwing and catching with cause RuntimeException cause = new RuntimeException("Cause");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java
// The exception should be serializable since it extends RuntimeException assertTrue(exception instanceof java.io.Serializable); } public void test_throwAndCatch() { // Test throwing and catching the exception String parentUrl = "http://example.com/parent"; String url = "http://example.com/child"; try { throw new ContentNotFoundException(parentUrl, url);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java
// Both instances should be of the same class assertEquals(exception1.getClass(), exception2.getClass()); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "SSO configuration error"; try { throw new SsoProcessException(expectedMessage); } catch (SsoProcessException e) {
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) -
android/guava/src/com/google/common/util/concurrent/FluentFuture.java
@Partially.GwtIncompatible("AVAILABLE but requires exceptionType to be Throwable.class") public final <X extends Throwable> FluentFuture<V> catching( Class<X> exceptionType, Function<? super X, ? extends V> fallback, Executor executor) { return (FluentFuture<V>) Futures.catching(this, exceptionType, fallback, executor); } /** * Returns a {@code Future} whose result is taken from this {@code Future} or, if this {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedType = "OAuth"; String expectedMessage = "OAuth token is invalid"; try { throw new InvalidAccessTokenException(expectedType, expectedMessage);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/SearchQueryExceptionTest.java
assertEquals("Exception 2", exception2.getMessage()); assertNotNull(exception3.getCause()); } public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Test throw and catch"; try { throw new SearchQueryException(expectedMessage); } catch (SearchQueryException e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.7K bytes - Viewed (0)