errors

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidInput signals malformed or invalid caller input (maps to 400).
	ErrInvalidInput = errors.New("invalid input")
	// ErrNotFound signals a requested resource does not exist or is
	// unavailable (maps to 404).
	ErrNotFound = errors.New("not found")
)

Semantic error categories returned by the domain handlers. They carry no HTTP knowledge — `statusFor“ is the single place that maps them to status codes — so the same errors could drive a non-HTTP transport (e.g. a consumer) unchanged.

View Source
var ErrMethodNotAllowed = errors.New("method not allowed")

Functions

This section is empty.

Types

type JSONError

type JSONError struct {
	Error string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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