Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for errorHandler (0.46 sec)

  1. src/fmt/scan.go

    			v.SetComplex(s.scanComplex(verb, v.Type().Bits()))
    		default:
    			s.errorString("can't scan type: " + val.Type().String())
    		}
    	}
    }
    
    // errorHandler turns local panics into error returns.
    func errorHandler(errp *error) {
    	if e := recover(); e != nil {
    		if se, ok := e.(scanError); ok { // catch local error
    			*errp = se.err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    	// proxying the request to another node.
    	for k := range w.Header() {
    		w.Header().Del(k)
    	}
    
    	f := handlers.NewForwarder(&handlers.Forwarder{
    		PassHost:     true,
    		RoundTripper: ep.Transport,
    		ErrorHandler: func(w http.ResponseWriter, r *http.Request, err error) {
    			success = false
    			if err != nil && !errors.Is(err, context.Canceled) {
    				replLogIf(GlobalContext, err)
    			}
    		},
    	})
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    		// the custom responder might be used for providing a unified error reporting
    		// or supporting retry mechanisms by not sending non-fatal errors to the clients
    		proxy.ErrorHandler = h.Responder.Error
    	}
    	proxy.ServeHTTP(w, newReq)
    }
    
    type noSuppressPanicError struct{}
    
    func (noSuppressPanicError) Write(p []byte) (n int, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. cmd/kube-proxy/app/server.go

    }
    
    // Creates a new filesystem watcher and adds watches for the config file.
    func (o *Options) initWatcher() error {
    	fswatcher := filesystem.NewFsnotifyWatcher()
    	err := fswatcher.Init(o.eventHandler, o.errorHandler)
    	if err != nil {
    		return err
    	}
    	err = fswatcher.AddWatch(o.ConfigFile)
    	if err != nil {
    		return err
    	}
    	o.watcher = fswatcher
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      mlir::StatusScopedDiagnosticHandler error_handler(module.getContext());
      mlir::LogicalResult result = mlir::TF::InferShapeForFunction(
          main_func, arg_shapes_copy, producer_version);
    
      if (failed(result)) {
        return error_handler.Combine(
            errors::Internal("MLIR Shape refinement failed"));
      }
      return error_handler.ConsumeStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

        return tensorflow::errors::Aborted(
            "Failed to apply MLIR pass manager CL options.");
      }
    
      auto error_handler = [&](const Twine& msg) {
        emitError(UnknownLoc::get(pm.getContext())) << msg;
        return failure();
      };
      if (failed(pass_pipeline.addToPipeline(pm, error_handler))) {
        return tensorflow::errors::Aborted("Failed to add passes to pipeline.");
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top