MCPcopy Index your code
hub / github.com/google/gvisor / NewDynamic

Function NewDynamic

pkg/syserr/syserr.go:73–75  ·  view source on GitHub ↗

NewDynamic creates a new error with a dynamic error message and an errno translation. NewDynamic should only be used sparingly and not be used for static error messages. Errors with static error messages should be declared with New as global variables.

(message string, linuxTranslation errno.Errno)

Source from the content-addressed store, hash-verified

71// messages. Errors with static error messages should be declared with New as
72// global variables.
73func NewDynamic(message string, linuxTranslation errno.Errno) *Error {
74 return &Error{message: message, errno: linuxTranslation}
75}
76
77func newWithHost(message string, linuxTranslation errno.Errno, hostErrno unix.Errno) *Error {
78 e := New(message, linuxTranslation)

Callers 1

LoadFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…