package oserror

import "internal/oserror"

Package oserror defines errors values used in the os package.

These types are defined here to permit the syscall package to reference them.

Index

Variables

var (
	ErrInvalid    = errors.New("invalid argument")
	ErrPermission = errors.New("permission denied")
	ErrExist      = errors.New("file already exists")
	ErrNotExist   = errors.New("file does not exist")
	ErrClosed     = errors.New("file already closed")
	ErrTemporary  = temporaryError{}
	ErrTimeout    = timeoutError{}
)

Functions

func IsTemporary

func IsTemporary(err error) bool

IsTemporary reports whether err indicates a temporary condition.

func IsTimeout

func IsTimeout(err error) bool

IsTimeout reports whether err indicates a timeout.

Source Files

errors.go

Version
v1.13.0-beta.1
Published
Jun 26, 2019
Platform
js/wasm
Imports
1 packages
Last checked
21 seconds ago

Tools for package owners.