errors

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode int
const (
	UnprocessableMessageErrorCode ErrorCode = iota + 1
	InternalErrorCode
	TimeoutErrorCode
)

type InternalError

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

func NewInternalError

func NewInternalError(msg string) InternalError

func (InternalError) Code

func (i InternalError) Code() ErrorCode

func (InternalError) Error

func (i InternalError) Error() string

func (InternalError) IsRetryable

func (i InternalError) IsRetryable() bool

func (InternalError) Message

func (i InternalError) Message() string

type ProcessingError

type ProcessingError interface {
	error

	IsRetryable() bool
	Code() ErrorCode
	Message() string
}

type TimeoutError

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

func NewTimeoutError

func NewTimeoutError(msg string) TimeoutError

func (TimeoutError) Code

func (t TimeoutError) Code() ErrorCode

func (TimeoutError) Error

func (t TimeoutError) Error() string

func (TimeoutError) IsRetryable

func (t TimeoutError) IsRetryable() bool

func (TimeoutError) Message

func (t TimeoutError) Message() string

type UnprocessableMessageError

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

func NewUnprocessableMessageError

func NewUnprocessableMessageError(msg string) UnprocessableMessageError

func (UnprocessableMessageError) Code

func (UnprocessableMessageError) Error

func (UnprocessableMessageError) IsRetryable

func (u UnprocessableMessageError) IsRetryable() bool

func (UnprocessableMessageError) Message

func (u UnprocessableMessageError) Message() string

Jump to

Keyboard shortcuts

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