openmeter / pkg /treex /errors.go
Leon4gr45's picture
Upload folder using huggingface_hub (part 10)
6380833 verified
Raw
History Blame Contribute Delete
388 Bytes
package treex
import "errors"
var (
ErrRootNodeIsNil = errors.New("root node cannot be nil")
ErrGraphHasCycle = errors.New("graph cannot contain cycles")
ErrNodeHasNoParentButNotRoot = errors.New("node has no parent but is not the root")
// catch-all error for invalid nodes or graph structure
ErrNodeGraphInvalid = errors.New("invalid graph structure")
)