errors

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: GPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConfigurationInvalid indicates invalid configuration
	ErrConfigurationInvalid = errors.New("configuration is invalid")

	// ErrProviderNotFound indicates provider not found
	ErrProviderNotFound = errors.New("payment provider not found")

	// ErrProviderUnavailable indicates provider unavailable
	ErrProviderUnavailable = errors.New("payment provider unavailable")

	// ErrInvalidCredentials indicates invalid credentials
	ErrInvalidCredentials = errors.New("invalid credentials")

	// ErrNetworkTimeout indicates network timeout
	ErrNetworkTimeout = errors.New("network timeout")

	// ErrRateLimitExceeded indicates rate limit exceeded
	ErrRateLimitExceeded = errors.New("rate limit exceeded")

	// ErrInvalidResponse indicates invalid response
	ErrInvalidResponse = errors.New("invalid response from provider")

	// ErrTransactionNotFound indicates transaction not found
	ErrTransactionNotFound = errors.New("transaction not found")

	// Additional errors for client API
	ErrInvalidConfig        = errors.New("invalid configuration")
	ErrInvalidRequest       = errors.New("invalid payment request")
	ErrInvalidProvider      = errors.New("invalid payment provider type")
	ErrPaymentFailed        = errors.New("payment processing failed")
	ErrAuthenticationFailed = errors.New("authentication failed")
	ErrNetworkError         = errors.New("network error")
	ErrTimeout              = errors.New("request timeout")
)

Common error variables

Functions

func IsAuthenticationError

func IsAuthenticationError(err error) bool

IsAuthenticationError checks if error is authentication related

func IsTemporaryError

func IsTemporaryError(err error) bool

IsTemporaryError checks if an error is temporary

func WrapError

func WrapError(err error, message string) error

WrapError wraps an error with additional context

Types

This section is empty.

Jump to

Keyboard shortcuts

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