Skip to content

Commit

Permalink
doc: add godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
  • Loading branch information
szuecs authored and AndrewCharlesHay committed Feb 7, 2024
1 parent 125203c commit c48a753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ import (
"sigs.k8s.io/external-dns/plan"
)

// SoftError is an error, that provider will only log as error instead
// of fatal. It is meant for error propagation from providers to tell
// that this is a transient error.
var SoftError error = errors.New("soft error")

// NewSoftError creates a SoftError from the given error
func NewSoftError(err error) error {
return errors.Join(SoftError, err)
}
Expand Down

0 comments on commit c48a753

Please sign in to comment.