Back to godoc.org

Package errors

v1.25.0
Latest Go to latest

The latest major version is .

Published: Jun 22, 2020 | License: BSD-3-Clause | Module: google.golang.org/protobuf

Overview

Package errors implements functions to manipulate errors.

Index

Variables

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

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

func InvalidUTF8

func InvalidUTF8(name string) error

func Is

func Is(err, target error) bool

Is is errors.Is.

func New

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

func RequiredNotSet(name string) error

func Wrap

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier