errors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationDownError

type DestinationDownError struct {
	Message string
	// contains filtered or unexported fields
}

DestinationDownError indicates the destination is down and wraps another error. It is a useful specific error that can be used, for example, in a circuit breaker to distinguish when a destination service is down and an internal error.

func NewDestinationDownError

func NewDestinationDownError(msg string, err error) *DestinationDownError

func (*DestinationDownError) Error

func (e *DestinationDownError) Error() string

func (*DestinationDownError) Unwrap

func (e *DestinationDownError) Unwrap() error

type UnprocessableTaskError

type UnprocessableTaskError struct {
	Message string
}

UnprocessableTaskError is an error type that indicates a task cannot be processed and should be marked as failed without retrying.

func NewUnprocessableTaskError

func NewUnprocessableTaskError(message string) *UnprocessableTaskError

NewUnprocessableTaskError returns a new UnprocessableTaskError from given message.

func (UnprocessableTaskError) Error

func (e UnprocessableTaskError) Error() string

Jump to

Keyboard shortcuts

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