func (erf ErrRelationMissingTypeInfo) RelationName() string {
	return erf.relationName
}
RelationName returns the name of the relation missing type information.
package graph
import (
	"errors"
	"fmt"
	"github.com/rs/zerolog"
	"github.com/authzed/spicedb/internal/sharederrors"
)
type ErrRequestCanceled struct {
	error
}
func NewRequestCanceledErr() error {
	return ErrRequestCanceled{
		error: errors.New("request canceled"),
	}
}
type ErrCheckFailure struct {
	error
}
func NewCheckFailureErr(baseErr error) error {
	return ErrCheckFailure{
		error: fmt.Errorf("error performing check: %w", baseErr),
	}
}
type ErrExpansionFailure struct {
	error
}
func NewExpansionFailureErr(baseErr error) error {
	return ErrExpansionFailure{
		error: fmt.Errorf("error performing expand: %w", baseErr),
	}
}
type ErrAlwaysFail struct {
	error
}
func NewAlwaysFailErr() error {
	return ErrAlwaysFail{
		error: errors.New("always fail"),
	}
}
type ErrRelationNotFound struct {
	error
	namespaceName string
	relationName  string
}
func (erf ErrRelationNotFound) NamespaceName() string {
	return erf.namespaceName
}
func (erf ErrRelationNotFound) NotFoundRelationName() string {
	return erf.relationName
}
func (erf ErrRelationNotFound) MarshalZerologObject(e *zerolog.Event) {
	e.Str("error", erf.Error()).Str("namespace", erf.namespaceName).Str("relation", erf.relationName)
}
func NewRelationNotFoundErr(nsName string, relationName string) error {
	return ErrRelationNotFound{
		error:         fmt.Errorf("relation/permission `%s` not found under definition `%s`", relationName, nsName),
		namespaceName: nsName,
		relationName:  relationName,
	}
}
var _ sharederrors.UnknownRelationError = ErrRelationNotFound{}
type ErrRelationMissingTypeInfo struct {
	error
	namespaceName string
	relationName  string
}
func (erf ErrRelationMissingTypeInfo) NamespaceName() string {
	return erf.namespaceName
}