Skip to content

Commit

Permalink
Add errinfo package with error types (#15300)
Browse files Browse the repository at this point in the history
* Add errinfo package with error types

* rename based on feedback
  • Loading branch information
jhendrixMSFT authored Aug 17, 2021
1 parent 305ddd8 commit 46932a3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sdk/internal/errorinfo/errorinfo.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// +build go1.13

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package errorinfo

// NonRetriable represents a non-transient error. This works in
// conjunction with the retry policy, indicating that the error condition
// is idempotent, so no retries will be attempted.
// Use errors.As() to access this interface in the error chain.
type NonRetriable interface {
error
NonRetriable()
}

0 comments on commit 46932a3

Please sign in to comment.