failrequest

package
v0.0.0-...-7a19e20 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(t event.FailType, s string) error

Error with public information.

func Errorf

func Errorf(t event.FailType, format string, args ...any) error

Errorf formats public information.

func WrapError

func WrapError(t event.FailType, public string, cause error) error

WrapError and associate public information with it.

Types

type FailError

type FailError interface {
	error
	FailType() event.FailType
}

func AsError

func AsError(err error) FailError

Jump to

Keyboard shortcuts

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