- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 2,123 for execution (0.05 sec)
-
tests/test_exception_handlers.py
def http_exception_handler(request, exception): return JSONResponse({"exception": "http-exception"}) def request_validation_exception_handler(request, exception): return JSONResponse({"exception": "request-validation"}) def server_error_exception_handler(request, exception): return JSONResponse(status_code=500, content={"exception": "server-error"}) app = FastAPI(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Feb 17 12:40:12 UTC 2022 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
} public void testSetFailure() throws Exception { assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); } public void testSetFailureNull() throws Exception { assertThrows(NullPointerException.class, () -> future.setException(null)); assertFalse(future.isDone()); assertTrue(future.setException(new Exception("failure"))); tester.testFailedFuture("failure"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import org.codelibs.fess.suggest.exception.SuggesterException; import org.codelibs.fess.suggest.request.suggest.SuggestResponse; import org.junit.Test; public class DeferredTest { @Test public void test_doneBeforeResolve() throws Exception { final Deferred<SuggestResponse> deferred = new Deferred<>(); Thread th = new Thread(() -> {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 4.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblem.java
* @param exception The exception that caused this problem, may be {@code null}. */ // mkleint: does this need to be public? public DefaultModelProblem( String message, Severity severity, Version version, Model source, int lineNumber, int columnNumber, Exception exception) { this( message,
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
} protected StringBuilder appendException(final StringBuilder buf, final Exception exception) { try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) { exception.printStackTrace(writer); writer.flush();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/AsyncEventBus.java
super(identifier, executor, Dispatcher.legacyAsync(), LoggingHandler.INSTANCE); } /** * Creates a new AsyncEventBus that will use {@code executor} to dispatch events. * * @param executor Executor to use to dispatch events. It is the caller's responsibility to shut * down the executor after the last event has been posted to this event bus.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Apr 22 13:05:46 UTC 2021 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
notifyAll(); } } /** * {@inheritDoc} * * @see jcifs.util.transport.Response#exception(java.lang.Exception) */ @Override public final void exception ( Exception e ) { this.error = true; this.exception = e; this.received = true; synchronized ( this ) { notifyAll(); } } /**
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 05 09:45:59 UTC 2018 - 7.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} catch (InstantiationException | IllegalAccessException impossible) { throw new AssertionError(impossible); } catch (InvocationTargetException e) { logger.log(Level.WARNING, "Exception while invoking default constructor.", e.getCause()); return arbitraryConstantInstanceOrNull(type); } } private static <T> @Nullable T arbitraryConstantInstanceOrNull(Class<T> type) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClusterException.java
* <li>If {@code exceptions} has a single exception and that exception is a {@link * RuntimeException}, return it * <li>If {@code exceptions} has a single exceptions and that exceptions is not a * {@link RuntimeException}, return a simple {@code RuntimeException} that wraps it * <li>Otherwise, return an instance of {@link ClusterException} that wraps the first exception * in the {@code exceptions} collection.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 26 20:07:17 UTC 2023 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/InvokableTest.java
} public void testConstructor() throws Exception { Invokable<A, A> invokable = A.constructor(); assertTrue(invokable.isPublic()); assertFalse(invokable.isPackagePrivate()); assertFalse(invokable.isAbstract()); assertFalse(invokable.isStatic()); assertTrue(invokable.isAnnotationPresent(Tested.class)); } public void testAbstractMethod() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 30.7K bytes - Viewed (0)