- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for errClosed (0.12 sec)
-
src/os/file_mutex_plan9.go
// is already closed. This method is on File so that we can incorporate // a nil test. func (f *File) incref(op string) (err error) { if f == nil { return ErrInvalid } if !f.fdmu.Incref() { err = ErrClosed if op != "" { err = &PathError{Op: op, Path: f.name, Err: err} } } return err } // decref removes a reference to the file. If this is the last
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Oct 08 03:57:40 UTC 2022 - 1.8K bytes - Viewed (0) -
src/net/error_test.go
return fmt.Errorf("error string %q does not contain expected string %q", nestedErr, want) } if !isShutdown && !errors.Is(nestedErr, ErrClosed) { return fmt.Errorf("errors.Is(%v, errClosed) returns false, want true", nestedErr) } switch err := nestedErr.(type) { case *OpError: if err := err.isValid(); err != nil { return err } nestedErr = err.Err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
src/net/http/httputil/persist.go
// Deprecated: No longer used. ErrClosed = &http.ProtocolError{ErrorString: "connection closed by user"} // Deprecated: No longer used. ErrPipeline = &http.ProtocolError{ErrorString: "pipeline error"} ) // This is an API usage error - the local side is closed. // ErrPersistEOF (above) reports that the remote side is closed. var errClosed = errors.New("i/o operation on closed connection")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/network/error.go
package network import ( "errors" "net" "net/http" ) func IsUnexpectedListenerError(err error) bool { if err == nil { return false } if errors.Is(err, net.ErrClosed) { return false } if errors.Is(err, http.ErrServerClosed) { return false } return true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 21 08:25:27 UTC 2023 - 858 bytes - Viewed (0) -
src/io/fs/fs.go
ErrClosed = errClosed() // "file already closed" ) func errInvalid() error { return oserror.ErrInvalid } func errPermission() error { return oserror.ErrPermission } func errExist() error { return oserror.ErrExist } func errNotExist() error { return oserror.ErrNotExist } func errClosed() error { return oserror.ErrClosed }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 15 21:21:41 UTC 2024 - 9.4K bytes - Viewed (0) -
src/compress/lzw/writer.go
// w's underlying writer. func (w *Writer) Close() error { if w.err != nil { if w.err == errClosed { return nil } return w.err } // Make any future calls to Write return errClosed. w.err = errClosed // Write the savedCode if valid. if w.savedCode != invalidCode { if err := w.write(w, w.savedCode); err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0) -
src/os/stat_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:38:03 UTC 2024 - 7.8K bytes - Viewed (0) -
src/internal/oserror/errors.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 02 17:57:18 UTC 2019 - 601 bytes - Viewed (0) -
src/os/error.go
ErrPermission = fs.ErrPermission // "permission denied" ErrExist = fs.ErrExist // "file already exists" ErrNotExist = fs.ErrNotExist // "file does not exist" ErrClosed = fs.ErrClosed // "file already closed" ErrNoDeadline = errNoDeadline() // "file type does not support deadline" ErrDeadlineExceeded = errDeadlineExceeded() // "i/o timeout" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 4.8K bytes - Viewed (0) -
src/os/error_test.go
{&fs.PathError{Err: fs.ErrNotExist}, false, true}, {&fs.PathError{Err: fs.ErrClosed}, false, false}, {&os.LinkError{Err: fs.ErrInvalid}, false, false}, {&os.LinkError{Err: fs.ErrPermission}, false, false}, {&os.LinkError{Err: fs.ErrExist}, true, false}, {&os.LinkError{Err: fs.ErrNotExist}, false, true}, {&os.LinkError{Err: fs.ErrClosed}, false, false}, {&os.SyscallError{Err: fs.ErrNotExist}, false, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 00:41:52 UTC 2023 - 4.9K bytes - Viewed (0)