errortemplate

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template string

Template provides a template error.

func (Template) Is

func (p Template) Is(e error) bool

Is returns true iff the given error e was created from the template p.

func (Template) New

func (p Template) New(args ...interface{}) error

New returns an error from the template.

func (Template) String

func (p Template) String() string

String returns the text defining this template.

func (Template) Wrap

func (p Template) Wrap(err error, args ...interface{}) error

Wrap returns an error from the template, wrapping err.

Jump to

Keyboard shortcuts

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