nodeerrno

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package nodeerrno maps operating-system errors to the error codes and descriptions Node reports for them. Node takes both from libuv: uv_translate_sys_error converts a Windows system error to a libuv errno, uv_err_name names the errno (error.code), and uv_strerror describes it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(errno syscall.Errno) (string, bool)

Code returns the Node error code for errno.

func Description

func Description(code string) (string, bool)

Description returns libuv's uv_strerror text for a Node error code.

func ErrorCode

func ErrorCode(err error) string

ErrorCode returns the Node error code (error.code) for the syscall.Errno that err wraps, or "" when err wraps none or its errno has no code here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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