fail

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: May 18, 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 (
	InvalidOption  = errors.New("public: Invalid option")
	InvalidSession = errors.New("public: Invalid session")
	MismatchCount  = errors.New("public: Count does not match")
	MissingParams  = errors.New("public: Missing required parameters")
	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