mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
os: add document for ErrInvalid
Fixes #12391. Change-Id: I31211cd711c035151785c3083571594d15c7d93e Reviewed-on: https://go-review.googlesource.com/16873 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
37ac54dc2b
commit
85ca578d4a
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
// Portable analogs of some common system call errors.
|
// Portable analogs of some common system call errors.
|
||||||
var (
|
var (
|
||||||
ErrInvalid = errors.New("invalid argument")
|
ErrInvalid = errors.New("invalid argument") // methods on File will return this error when the receiver is nil
|
||||||
ErrPermission = errors.New("permission denied")
|
ErrPermission = errors.New("permission denied")
|
||||||
ErrExist = errors.New("file already exists")
|
ErrExist = errors.New("file already exists")
|
||||||
ErrNotExist = errors.New("file does not exist")
|
ErrNotExist = errors.New("file does not exist")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue