- Sort Score
- Num 10 results
- Language All
Results 1301 - 1310 of 2,828 for exception (0.06 seconds)
-
guava-tests/test/com/google/common/collect/ForwardingMapTest.java
verify(map, atLeast(0)).isEmpty(); verify(map, atLeast(0)).size(); verify(map, atLeast(0)).entrySet(); verifyNoMoreInteractions(map); } public void testToStringWithNullKeys() throws Exception { Map<String, String> hashmap = new HashMap<>(); hashmap.put("foo", "bar"); hashmap.put(null, "baz"); StandardImplForwardingMap<String, String> forwardingMap =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
System.arraycopy(ctxBytes, 0, packet, ctxOffsetFromHeader, ctxBytes.length); } return packet; } @Test void decode_basic_noContexts() throws Exception { Configuration config = Mockito.mock(Configuration.class); Smb2CreateResponse resp = new Smb2CreateResponse(config, "file.txt"); byte[] fileId = new byte[16];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_py310.py
from fastapi import Depends, FastAPI, HTTPException app = FastAPI() class InternalError(Exception): pass def get_username(): try: yield "Rick" except InternalError: print("We don't swallow the internal error here, we raise again 😎") raise @app.get("/items/{item_id}") def get_item(item_id: str, username: str = Depends(get_username)): if item_id == "portal-gun":
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 694 bytes - Click Count (0) -
guava/src/com/google/common/base/Preconditions.java
* * But the methods in this class want to throw different exceptions, depending on the args, so it * appears that this pattern is not directly applicable. But we can use the ridiculous, devious * trick of throwing an exception in the middle of the construction of another exception. Hotspot * is fine with that. */ /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 53.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java
* * @param request the HTTP request * @param response the HTTP response * @throws IOException if an I/O error occurs */ protected void processChatRequest(final HttpServletRequest request, final HttpServletResponse response) throws IOException { if (!"POST".equalsIgnoreCase(request.getMethod())) { if (logger.isDebugEnabled()) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 06:06:55 GMT 2026 - 25.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
Collection<String> set = new LinkedHashSet<>(asList("a", "b", "c")); Iterable<String> tail = skip(set, 1); set.remove("b"); set.addAll(newArrayList("A", "B", "C")); assertThat(tail).containsExactly("c", "A", "B", "C").inOrder(); } public void testSkip_structurallyModifiedSkipSomeList() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
assertEquals(4, readLen, "Byte count returned should be 4"); } @Test @DisplayName("readParameterWordsWireFormat with a too-short buffer - throws exception") void testReadParameterWordsWithShortBuffer() { byte[] buffer = new byte[] { 0x00, 0x01, 0x02 }; // only three bytes
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
import jakarta.servlet.http.HttpServletRequest; public class RoleQueryHelperTest extends UnitFessTestCase { public CachedCipher cipher; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); cipher = new CachedCipher(); cipher.setKey("1234567890123456"); // Setup system properties for DI containerCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 28.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/app/job/AllJobSchedulerTest.java
assertNotNull(scheduler); } public void test_setJobClass() { final AllJobScheduler scheduler = new AllJobScheduler(); scheduler.setJobClass(TestJob.class); // No exception means success } // Test job class for testing setJobClass public static class TestJob implements LaJob { @Override public void run(final org.lastaflute.job.LaJobRuntime runtime) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 12:58:11 GMT 2026 - 1.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/MavenExecutionException.java
* under the License. */ package org.apache.maven; import java.io.File; import org.apache.maven.project.ProjectBuildingException; /** */ public class MavenExecutionException extends Exception { private File pomFile; public MavenExecutionException(String message, File pomFile) { super(message); this.pomFile = pomFile; }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.4K bytes - Click Count (0)