errors

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProxyError        errorType = errorType(errors.New("proxy error"))
	ProxySessionError errorType = errorType(errors.New("proxy session error"))
	ProxyInitError    errorType = errorType(errors.New("proxy init error"))
	TLSConfigError    errorType = errorType(errors.New("TLS configuration error"))
)

Functions

func WithString

func WithString(err error, errMsg string) error

func WithStringf

func WithStringf(err error, errMsg string, params ...any) error

func WithType

func WithType(err error, errType errorType) error

WithType wraps an error with a type that can later be checked using `errors.Is`

Types

This section is empty.

Jump to

Keyboard shortcuts

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