func NewNamespaceNotFoundErr(nsName string) error {
	return ErrNamespaceNotFound{
		error:         fmt.Errorf("object definition `%s` not found", nsName),
		namespaceName: nsName,
	}
}
NewNamespaceNotFoundErr constructs a new namespace not found error.
package namespace
import (
	"fmt"
	"github.com/rs/zerolog"
	"github.com/authzed/spicedb/internal/sharederrors"
)
type ErrNamespaceNotFound struct {
	error
	namespaceName string
}
func (enf ErrNamespaceNotFound) NotFoundNamespaceName() string {
	return enf.namespaceName
}
func (enf ErrNamespaceNotFound) MarshalZerologObject(e *zerolog.Event) {
	e.Str("error", enf.Error()).Str("namespace", enf.namespaceName)
}