Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for errorHandler (0.25 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnection.java

        private volatile boolean aborted;
    
        public MessageHubBackedObjectConnection(ExecutorFactory executorFactory, ConnectCompletion completion) {
            Action<Throwable> errorHandler = new Action<Throwable>() {
                @Override
                public void execute(Throwable throwable) {
                    Throwable current = throwable;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go

    		panic("test")
    	}()
    	if result != "test" {
    		t.Errorf("did not receive custom handler")
    	}
    }
    
    func TestCustomHandleError(t *testing.T) {
    	old := ErrorHandlers
    	defer func() { ErrorHandlers = old }()
    	var result error
    	ErrorHandlers = []ErrorHandler{
    		func(_ context.Context, err error, msg string, keysAndValues ...interface{}) {
    			result = err
    		},
    	}
    	err := fmt.Errorf("test")
    	HandleError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/internal/hub/MessageHubIntegrationTest.groovy

    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.LinkedBlockingQueue
    
    @Timeout(60)
    class MessageHubIntegrationTest extends ConcurrentSpec {
        final Action<Throwable> errorHandler = Mock()
    
        def "can wire two hubs together"() {
            Dispatch<String> clientHandler = Mock()
            Dispatch<String> serverHandler = Mock()
            def server = new Participant()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.cc

      // error reporting system.
      mlir::StatusScopedDiagnosticHandler error_handler(mlir_context);
    
      // Parse the module.
      *mlir_module = mlir::parseSourceString<mlir::ModuleOp>(serialized_mlir_module,
                                                             mlir_context);
      if (!*mlir_module)
        return error_handler.Combine(
            errors::InvalidArgument("could not parse MLIR module"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top