protobuf: google.golang.org/protobuf/internal/errors Index | Files

package errors

import "google.golang.org/protobuf/internal/errors"

Package errors implements functions to manipulate errors.

Index

Package Files

errors.go is_go113.go

Variables

var Error = errors.New("protobuf error")

Error is a sentinel matching all errors produced by this package.

func InvalidUTF8 Uses

func InvalidUTF8(name string) error

func Is Uses

func Is(err, target error) bool

Is is errors.Is.

func New Uses

func New(f string, x ...interface{}) error

New formats a string according to the format specifier and arguments and returns an error that has a "proto" prefix.

func RequiredNotSet Uses

func RequiredNotSet(name string) error

func Wrap Uses

func Wrap(err error, f string, x ...interface{}) error

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.

Package errors imports 3 packages (graph) and is imported by 27 packages. Updated 2020-09-09. Refresh now. Tools for package owners.