-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patherrors.go
More file actions
22 lines (17 loc) · 771 Bytes
/
errors.go
File metadata and controls
22 lines (17 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package did
import "fmt"
// Decoder errors
var (
// ErrInvalidDid indicates that the DID supplied to the DID resolution function does not conform to valid syntax.
ErrInvalidDid = fmt.Errorf("invalid DID")
// ErrMethodNotSupported indicates that the DID method is not supported, or that the corresponding decoder
// has not been registered properly.
ErrMethodNotSupported = fmt.Errorf("DID method not supported")
)
// Resolver errors
var (
// ErrNotFound indicates that the DID resolver was unable to find the DID document for the given DID.
ErrNotFound = fmt.Errorf("did not found")
// ErrResolutionFailure indicates that the DID resolver failed to resolve the DID, in a way that is not ErrNotFound
ErrResolutionFailure = fmt.Errorf("resolution failure")
)