Back to Pocketbase

Interface syscallErrorType

static/jsvm/interfaces/os.syscallErrorType.html

latest1.3 KB
Original Source

Interface syscallErrorType

An Errno is an unsigned number describing an error condition. It implements the error interface. The zero Errno is by convention a non-error, so code to convert from Errno to error should use:

err = nil if errno != 0 { err = errno }Copy

Errno values can be tested against error values using [errors.Is]. For example:

_, _, err := syscall.Syscall(...) if errors.Is(err, fs.ErrNotExist) ...Copy

Hierarchy

Index

Methods

erroristemporarytimeout

Methods

error

  • error(): string

Returns string

is

  • is(target): boolean

Parameters

target: Error

Returns boolean

temporary

  • temporary(): boolean

Returns boolean

timeout

  • timeout(): boolean

Returns boolean

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc