oserror

package standard library
go1.13beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package oserror defines errors values used in the os package.

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

Index

Constants

This section is empty.

Variables

View Source
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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL