gvisorgvisor.dev/gvisor/pkg/errors Index | Files | Directories

package errors

import "gvisor.dev/gvisor/pkg/errors"

Package errors holds the standardized error definition for gVisor.

Index

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents a syscall errno with a descriptive message.

func New

func New(err errno.Errno, message string) *Error

New creates a new *Error.

func (*Error) Errno

func (e *Error) Errno() errno.Errno

Errno returns the underlying errno.Errno value.

func (*Error) Error

func (e *Error) Error() string

Error implements error.Error.

Source Files

errors.go

Directories

PathSynopsis
pkg/errors/linuxerrPackage linuxerr contains syscall error codes exported as an error interface pointers.
Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.