errors

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRequest = errors.New("bad request")

ErrBadRequest is a general error for bad requests

View Source
var ErrInvalidListenPort = errors.New("invalid listen port in config")

ErrInvalidListenPort is an error for when the configured listen port is invalid (e.g., negative)

View Source
var ErrInvalidMethod = errors.New("invalid method value in config")

ErrInvalidMethod is an error for when a configuration's method is invalid

View Source
var ErrInvalidOptions = errors.New("invalid options")

ErrInvalidOptions is an error for when a configuration is invalid

View Source
var ErrInvalidPath = errors.New("invalid path value in config")

ErrInvalidPath is an error for when a configuration's path is invalid

View Source
var ErrMissingPathConfig = errors.New("missing path config")

ErrMissingPathconfig is an error for when a configuration is missing a path value

View Source
var ErrNilWriter = errors.New("nil writer")

ErrNilWriter is an error for a nil writer when a non-nil writer was expected

View Source
var ErrNoValidBackends = errors.New("no valid backends configured")

ErrNoValidBackends is an error for when not valid backends have been configured

View Source
var ErrServerAlreadyStarted = errors.New("server is already started")

ErrServerAlreadyStarted is an error for when daemon.Start() is called more than once

Functions

func NewErrorBody

func NewErrorBody(err error) string

Types

type ErrorBody

type ErrorBody struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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