Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for error_handler_ (0.2 sec)

  1. pilot/pkg/xds/debug.go

    	})
    	writeJSON(w, configs, req)
    }
    
    // SidecarScope debugging
    func (s *DiscoveryServer) sidecarz(w http.ResponseWriter, req *http.Request) {
    	proxyID, con := s.getDebugConnection(req)
    	if con == nil {
    		s.errorHandler(w, proxyID, con)
    		return
    	}
    	writeJSON(w, con.proxy.SidecarScope, req)
    }
    
    // Resource debugging.
    func (s *DiscoveryServer) resourcez(w http.ResponseWriter, req *http.Request) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/DependencyInsightReportTask.java

        // a value of `configuration.getAttributes()`.
        // TODO:configuration-cache find a way to clean up this #23732
        private Provider<AttributeContainer> zConfigurationAttributes;
        private ResolutionErrorRenderer errorHandler;
        private String configurationName;
        private String configurationDescription;
    
        /**
         * The root component of the dependency graph to be inspected.
         *
         * @since 7.5
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:29:40 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/syntax/branches.go

    //   - bad labeled breaks and continues
    //   - invalid, unused, duplicate, and missing labels
    //   - gotos jumping over variable declarations and into blocks
    func checkBranches(body *BlockStmt, errh ErrorHandler) {
    	if body == nil {
    		return
    	}
    
    	// scope of all labels in this body
    	ls := &labelScope{errh: errh}
    	fwdGotos := ls.blockBranches(nil, targets{}, nil, body.Pos(), body.List)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:21:29 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  5. src/net/http/httputil/reverseproxy_test.go

    		wantCode       int
    		errorHandler   func(http.ResponseWriter, *http.Request, error)
    		transport      http.RoundTripper // defaults to failingRoundTripper
    		modifyResponse func(*http.Response) error
    	}{
    		{
    			name:     "default",
    			wantCode: http.StatusBadGateway,
    		},
    		{
    			name:         "errorhandler",
    			wantCode:     http.StatusTeapot,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  6. src/go/scanner/scanner.go

    	"go/token"
    	"path/filepath"
    	"strconv"
    	"unicode"
    	"unicode/utf8"
    )
    
    // An ErrorHandler may be provided to [Scanner.Init]. If a syntax error is
    // encountered and a handler was installed, the handler is called with a
    // position and an error message. The position points to the beginning of
    // the offending token.
    type ErrorHandler func(pos token.Position, msg string)
    
    // A Scanner holds the scanner's internal state while processing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline_test.go

    		t.Run(test.name, func(t *testing.T) {
    			var (
    				errorHandlerCallCountGot int
    				rwGot                    http.ResponseWriter
    				requestGot               *http.Request
    			)
    
    			errorHandler := http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
    				http.Error(rw, "error serving request", http.StatusBadRequest)
    
    				errorHandlerCallCountGot++
    				requestGot = req
    				rwGot = rw
    			})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 23:04:34 UTC 2022
    - 16.7K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      return success();
    }
    
    mlir::LogicalResult ReshapeOp::verify() {
      ReshapeOp op = *this;
      auto error_handler = [&op](const llvm::Twine& message) -> LogicalResult {
        return op.emitOpError() << message;
      };
      TensorType expected_ty;
      if (failed(GetReshapeOutputType(op.getInput(), op.getShape(), error_handler,
                                      expected_ty)))
        return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top