fail

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fail contains common errors

Index

Constants

This section is empty.

Variables

View Source
var (
	MismatchCount  = errors.New("public: Count does not match")
	MissingParams  = errors.New("public: Missing required parameters")
	MissingSession = errors.New("public: Missing session")
	NotAuthorized  = errors.New("public: Not authorized")
	NotFoundItem   = errors.New("public: Item not found")
)

Functions

func FromErrors added in v0.3.7

func FromErrors(label string, errs []error) error

FromErrors produces a single error from the list of errors

func PublicMessage added in v0.3.7

func PublicMessage(err error) (string, bool)

PublicMessage gets the public error message from "public: <message>" error

Types

This section is empty.

Jump to

Keyboard shortcuts

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