- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,324 for exception (0.05 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
throw new RuntimeException("Test exception in listener"); } }); try { factory.destroyObject(pooledObject); fail("Should propagate exception from listener"); } catch (Exception e) { assertTrue(e.getMessage().contains("Test exception")); } } /**
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testContentException() { CurlResponse response = new CurlResponse(); Exception exception = new IOException("Test exception"); response.setContentException(exception); assertSame(exception, response.getContentException()); } @Test public void testHeaders() { CurlResponse response = new CurlResponse();
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java
/** * Classes and futures used in {@link FuturesGetCheckedTest} and {@link FuturesGetUncheckedTest}. */ @GwtCompatible @NullUnmarked final class FuturesGetCheckedInputs { static final Exception CHECKED_EXCEPTION = new Exception("mymessage"); static final Future<String> FAILED_FUTURE_CHECKED_EXCEPTION = immediateFailedFuture(CHECKED_EXCEPTION); static final RuntimeException UNCHECKED_EXCEPTION = new RuntimeException("mymessage");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanMapTest.java
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.7K bytes - Viewed (0) -
docs/en/docs/tutorial/handling-errors.md
{* ../../docs_src/handling_errors/tutorial002.py hl[14] *} ## Install custom exception handlers { #install-custom-exception-handlers } You can add custom exception handlers with <a href="https://www.starlette.io/exceptions/" class="external-link" target="_blank">the same exception utilities from Starlette</a>. Let's say you have a custom exception `UnicornException` that you (or a library you use) might `raise`.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/TraverserUtilTest.java
import org.codelibs.core.lang.ClassUtil; import org.junit.Test; /** * @author koichik */ public class TraverserUtilTest { /** * @throws Exception */ @Test public void testFromClass_FileSystem() throws Exception { final Traverser traverser = TraversalUtil.getTraverser(DummyTest.class); assertThat(traverser, is(notNullValue()));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MavenBuilderException.java
/** * Base class for all maven exceptions carrying {@link BuilderProblem}s. * * @since 4.0.0 */ @Experimental public abstract class MavenBuilderException extends MavenException { /** * The collection of problems associated with this exception. */ private final ProblemCollector<BuilderProblem> problems; /** * Constructs a new exception with the specified message and cause.
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/CloseableUtilTest.java
assertThat(out.getNotify(), is("closed")); } /** * @throws Exception */ @Test public void testCloseNull() throws Exception { CloseableUtil.close((OutputStream) null); } /** * @throws Exception */ @Test public void testClose_noThrowIOException() throws Exception { final OutputStream out = new IOExceptionOccurOutputStream();
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
return buf; } /** * Appends exception information to the buffer. * * @param buf the string buffer to append to * @param exception the exception to append * @return the updated buffer */ protected StringBuilder appendException(final StringBuilder buf, final Exception exception) { try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
// Then: Remove should throw UnsupportedOperationException UnsupportedOperationException exception = assertThrows(UnsupportedOperationException.class, iterator::remove); assertEquals("remove", exception.getMessage()); } @Test @DisplayName("Close should be idempotent") void testClose_Idempotent() throws Exception { // Given: A valid iterator setup
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0)