errors

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidToken indicates the provided token is invalid or expired
	ErrInvalidToken = errors.New("invalid or expired token")

	// ErrUnauthorized indicates the client is not authorized
	ErrUnauthorized = errors.New("unauthorized")

	// ErrCertificateRequired indicates missing or invalid certificates
	ErrCertificateRequired = errors.New("valid certificates are required")

	// ErrInvalidConfig indicates invalid configuration
	ErrInvalidConfig = errors.New("invalid configuration")
)

Functions

func WrapError

func WrapError(op string, err error) error

WrapError wraps an error with additional operation context

Types

type AuthError

type AuthError struct {
	Op  string // Operation that failed
	Err error  // Underlying error
}

AuthError represents a custom error type for authentication errors

func (*AuthError) Error

func (e *AuthError) Error() string

func (*AuthError) Unwrap

func (e *AuthError) Unwrap() error

Jump to

Keyboard shortcuts

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