summaryrefslogtreecommitdiff
path: root/vendor/github.com/authzed/spicedb/internal/sharederrors/interfaces.go
blob: 852c28ffd311ca6d6121248d9a770442ddac47a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package sharederrors

// UnknownNamespaceError is an error raised when a namespace was not found.
type UnknownNamespaceError interface {
	// NotFoundNamespaceName is the name of the namespace that was not found.
	NotFoundNamespaceName() string
}

// UnknownRelationError is an error raised when a relation was not found.
type UnknownRelationError interface {
	// NamespaceName is the name of the namespace under which the relation was not found.
	NamespaceName() string

	// NotFoundRelationName is the name of the relation that was not found.
	NotFoundRelationName() string
}