errors

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TtlExpiration       string = "ttl"
	CostLimitExpiration string = "cost-limit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError added in v1.7.0

type AuthError struct {
	// contains filtered or unexported fields
}

func NewAuthError added in v1.7.0

func NewAuthError(msg string) *AuthError

func (*AuthError) Authenticated added in v1.7.0

func (ae *AuthError) Authenticated()

func (*AuthError) Error added in v1.7.0

func (ae *AuthError) Error() string

type ExpirationError

type ExpirationError struct {
	// contains filtered or unexported fields
}

func NewExpirationError

func NewExpirationError(msg string, reason string) *ExpirationError

func (*ExpirationError) Error

func (ee *ExpirationError) Error() string

func (*ExpirationError) Reason

func (ee *ExpirationError) Reason() string

type NotFoundError added in v0.0.7

type NotFoundError struct {
	// contains filtered or unexported fields
}

func NewNotFoundError added in v0.0.7

func NewNotFoundError(msg string) *NotFoundError

func (*NotFoundError) Error added in v0.0.7

func (nfe *NotFoundError) Error() string

func (*NotFoundError) NotFound added in v0.0.7

func (nfe *NotFoundError) NotFound()

type RateLimitError

type RateLimitError struct {
	// contains filtered or unexported fields
}

func NewRateLimitError

func NewRateLimitError(msg string) *RateLimitError

func (*RateLimitError) Error

func (rle *RateLimitError) Error() string

func (*RateLimitError) RateLimit

func (rle *RateLimitError) RateLimit()

type ValidationError

type ValidationError struct {
	// contains filtered or unexported fields
}

func NewValidationError

func NewValidationError(msg string) *ValidationError

func (*ValidationError) Error

func (ve *ValidationError) Error() string

func (*ValidationError) Validation

func (ve *ValidationError) Validation()

Jump to

Keyboard shortcuts

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