Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for writeErrors (0.33 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	origReallyCrash := runtime.ReallyCrash
    	runtime.ReallyCrash = false
    	defer func() {
    		runtime.ReallyCrash = origReallyCrash
    	}()
    
    	sendResponse := make(chan string, 1)
    	doPanic := make(chan interface{}, 1)
    	writeErrors := make(chan error, 1)
    	gotPanic := make(chan interface{}, 1)
    	timeout := make(chan time.Time, 1)
    	resp := "test response"
    	timeoutErr := apierrors.NewServerTimeout(schema.GroupResource{Group: "foo", Resource: "bar"}, "get", 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/renderer/ConsoleConfigurationReportRenderer.java

        }
    
        private void writeConfiguration(ReportConfiguration config) {
            writeConfigurationNameHeader(config, spec.getReportedTypeAlias());
            writeDescription(config.getDescription());
    
            writeErrors(config.getLenientErrors());
    
            if (!config.getAttributes().isEmpty() ||
                (spec.isIncludeCapabilities() && !config.getCapabilities().isEmpty()) ||
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 16:17:12 UTC 2022
    - 18.3K bytes
    - Viewed (0)
  3. pkg/kubelet/server/server.go

    	if err != nil {
    		utilruntime.HandleError(err)
    		response.WriteError(http.StatusBadRequest, err)
    		return
    	}
    	pod, ok := s.host.GetPodByName(params.podNamespace, params.podName)
    	if !ok {
    		response.WriteError(http.StatusNotFound, fmt.Errorf("pod does not exist"))
    		return
    	}
    	if len(params.podUID) > 0 && pod.UID != params.podUID {
    		response.WriteError(http.StatusNotFound, fmt.Errorf("pod not found"))
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  4. pkg/test/echo/server/endpoint/http.go

    	} else {
    		h.echo(w, r, id)
    	}
    }
    
    // nolint: interfacer
    func writeError(out *bytes.Buffer, msg string) {
    	epLog.Warn(msg)
    	_, _ = out.WriteString(msg + "\n")
    }
    
    func (h *httpHandler) echo(w http.ResponseWriter, r *http.Request, id uuid.UUID) {
    	body := bytes.Buffer{}
    
    	if err := r.ParseForm(); err != nil {
    		writeError(&body, "ParseForm() error: "+err.Error())
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  5. src/text/template/exec.go

    	})
    }
    
    // writeError is the wrapper type used internally when Execute has an
    // error writing to its output. We strip the wrapper in errRecover.
    // Note that this is not an implementation of error, so it cannot escape
    // from the package as an error value.
    type writeError struct {
    	Err error // Original error.
    }
    
    func (s *state) writeError(err error) {
    	panic(writeError{
    		Err: err,
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. src/compress/flate/inflate.go

    }
    
    // A WriteError reports an error encountered while writing output.
    //
    // Deprecated: No longer returned.
    type WriteError struct {
    	Offset int64 // byte offset where error occurred
    	Err    error // error returned by underlying Write
    }
    
    func (e *WriteError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/printer.go

    	p := printer{
    		output:     w,
    		form:       form,
    		linebreaks: form == 0,
    	}
    
    	defer func() {
    		n = p.written
    		if e := recover(); e != nil {
    			err = e.(writeError).err // re-panics if it's not a writeError
    		}
    	}()
    
    	p.print(x)
    	p.flush(_EOF)
    
    	return
    }
    
    // String is a convenience function that prints n in ShortForm
    // and returns the printed string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  8. src/io/io_test.go

    func TestCopyReadErrWriteErr(t *testing.T) {
    	er, ew := errors.New("readError"), errors.New("writeError")
    	r, w := zeroErrReader{err: er}, errWriter{err: ew}
    	n, err := Copy(w, r)
    	if n != 0 || err != ew {
    		t.Errorf("Copy(zeroErrReader, errWriter) = %d, %v; want 0, writeError", n, err)
    	}
    }
    
    func TestCopyN(t *testing.T) {
    	rb := new(Buffer)
    	wb := new(Buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top