retryerrors

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package retryerrors implements the retryable error interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonRecoverableError

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

func NewNonRecoverableError

func NewNonRecoverableError(msg string, err error) *NonRecoverableError

func (NonRecoverableError) Error

func (e NonRecoverableError) Error() string

func (NonRecoverableError) ShouldRetry

func (e NonRecoverableError) ShouldRetry() bool

type RecoverableError

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

func NewRecoverableError

func NewRecoverableError(msg string, err error) *RecoverableError

func (RecoverableError) Error

func (e RecoverableError) Error() string

func (RecoverableError) ShouldRetry

func (e RecoverableError) ShouldRetry() bool

type RetryableError

type RetryableError interface {
	error
	ShouldRetry() bool
}

Jump to

Keyboard shortcuts

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