- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for dispatchFailed (0.23 sec)
-
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ExceptionTrackingFailureHandlerTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/FailureHandlingDispatchTest.groovy
def failure = new RuntimeException() when: dispatch.dispatch("message") then: 1 * target.dispatch("message") >> { throw failure } 1 * handler.dispatchFailed("message", failure) } def "propagates exception thrown by handler"() { def failure = new RuntimeException() def adaptedFailure = new RuntimeException() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/DispatchFailureHandler.java
public interface DispatchFailureHandler<T> { /** * Called when a message could not be dispatched. This method can throw an exception to abort further dispatching. */ void dispatchFailed(T message, Throwable failure);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 892 bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/FailureHandlingDispatch.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.2K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ExceptionTrackingFailureHandler.java
private final Logger logger; private DispatchException failure; public ExceptionTrackingFailureHandler(Logger logger) { this.logger = logger; } @Override public void dispatchFailed(Object message, Throwable failure) { if (this.failure != null && !Thread.currentThread().isInterrupted()) { logger.error(failure.getMessage(), failure); } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 1.6K bytes - Viewed (0)