package errors
import "google.golang.org/protobuf/internal/errors"
Package errors implements functions to manipulate errors.
Index ¶
- Variables
- func InvalidUTF8(name string) error
- func Is(err, target error) bool
- func New(f string, x ...interface{}) error
- func RequiredNotSet(name string) error
- func Wrap(err error, f string, x ...interface{}) error
Variables ¶
Error is a sentinel matching all errors produced by this package.
Functions ¶
func InvalidUTF8 ¶
func Is ¶
Is is errors.Is.
func New ¶
New formats a string according to the format specifier and arguments and returns an error that has a "proto" prefix.
func RequiredNotSet ¶
func Wrap ¶
Wrap returns an error that has a "proto" prefix, the formatted string described by the format specifier and arguments, and a suffix of err. The error wraps err.
Source Files ¶
errors.go is_go113.go
- Version
- v1.28.0
- Published
- Mar 22, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.