Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDependencyError ¶
IsDependencyError checks if err is or wraps an infra error that originated in a downstream dependency. Returns false for user errors, generic errors, and infra errors not marked as dependency.
func IsRetryable ¶
IsRetryable checks if err is retryable. Returns true when err is or wraps an infrastructure error whose retryable flag is set or when err is context.Canceled. User errors are never retryable. A generic error (not wrapped) returns false, consistent with the convention that unclassified errors are non-retryable.
func IsUserError ¶
IsUserError checks if err is or wraps a user error.
func NewDependencyError ¶
NewDependencyError creates a non-retryable dependency infra error wrapping the given cause. A dependency error is an error that is caused by a downstream dependency outside the control of the current system, for example an external build system being down.
func NewRetryableDependencyError ¶
NewRetryableDependencyError creates a retryable dependency infra error wrapping the given cause. A retryable dependency error is an error that is caused by a downstream dependency outside the control of the current system, for example an external build system being down.
func NewRetryableError ¶
NewRetryableError creates a retryable infra error wrapping the given cause.
func NewUserError ¶
NewUserError creates a user error wrapping the given cause. A user error is an error that is caused by the user's action or input, for example an invalid input or a merge conflict. User errors are never retryable — only infrastructure errors can be retryable.
Types ¶
This section is empty.