github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/internal/sharederrors/interfaces.go (about)

     1  package sharederrors
     2  
     3  // UnknownNamespaceError is an error raised when a namespace was not found.
     4  type UnknownNamespaceError interface {
     5  	// NotFoundNamespaceName is the name of the namespace that was not found.
     6  	NotFoundNamespaceName() string
     7  }
     8  
     9  // UnknownRelationError is an error raised when a relation was not found.
    10  type UnknownRelationError interface {
    11  	// NamespaceName is the name of the namespace under which the relation was not found.
    12  	NamespaceName() string
    13  
    14  	// NotFoundRelationName is the name of the relation that was not found.
    15  	NotFoundRelationName() string
    16  }