util

package
v0.0.0-...-5c2e7a1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrImSorryDave is returned when a user tries to manipulate form data
	ErrImSorryDave = errors.New("i'm sorry dave, i'm afraid i can't do that")

	// ErrNoSuchBench is returned if a user tries to modify a bench which doesn't exist or doesn't belong to them
	ErrNoSuchBench = errors.New("no such bench")

	// ErrNoSuchModule is returned if a module does not exist (anymore)
	ErrNoSuchModule = errors.New("no such module")

	// ErrNoActiveBench is returned if there is no bench currently set to active
	ErrNoActiveBench = errors.New("no currently active bench")
)
View Source
var (
	// FormDecoder cache for all views
	FormDecoder = schema.NewDecoder()
)

Functions

This section is empty.

Types

type HintError

type HintError struct {
	Hint string
	Err  error
}

HintError wraps an error with a descriptive hint for the user

func (HintError) Error

func (e HintError) Error() string

func (HintError) Unwrap

func (e HintError) Unwrap() error

Unwrap the error

Jump to

Keyboard shortcuts

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