Documentation
¶
Overview ¶
Package errors provides shared error types used across multiple packages. This package exists to avoid import cycles between importer and its subpackages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrFallbackNotConfigured indicates that SABnzbd fallback is not enabled or configured. ErrFallbackNotConfigured = &NonRetryableError{ message: "SABnzbd fallback not configured", cause: nil, } )
Sentinel errors for common non-retryable conditions.
Functions ¶
func IsNonRetryable ¶
IsNonRetryable checks if an error is non-retryable.
func NewNonRetryableError ¶
NewNonRetryableError creates a new non-retryable error with a message and optional cause.
func WrapNonRetryable ¶
WrapNonRetryable wraps an existing error as non-retryable.
Types ¶
type NonRetryableError ¶
type NonRetryableError struct {
// contains filtered or unexported fields
}
NonRetryableError represents an error that should not be retried. Operations that encounter this error type should fail immediately without retry attempts.
func (*NonRetryableError) Error ¶
func (e *NonRetryableError) Error() string
Error implements the error interface.
func (*NonRetryableError) Is ¶
func (e *NonRetryableError) Is(target error) bool
Is checks if the target error is a NonRetryableError.
func (*NonRetryableError) Unwrap ¶
func (e *NonRetryableError) Unwrap() error
Unwrap returns the underlying cause error for error unwrapping.