-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherrors.go
More file actions
18 lines (12 loc) · 783 Bytes
/
Copy patherrors.go
File metadata and controls
18 lines (12 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package dot
import "errors"
// ErrSubgraphWithoutParent means a subgraph cannot be created without a parent
var ErrSubgraphWithoutParent = errors.New("cannot create subgraph without parent")
// ErrRootWithParent means a non-subgraph cannot be created with a parent
var ErrRootWithParent = errors.New("cannot create [di]graph with parent")
// ErrGraphWithoutGenerator means a graph cannot be created without a generator
var ErrGraphWithoutGenerator = errors.New("cannot create a graph without an ID generator")
// ErrRootAsCluster means a cluster graph cannot be created at root level
var ErrRootAsCluster = errors.New("cannot create a root cluster graph")
// ErrNilParent means a nil parent was provided
var ErrNilParent = errors.New("cannot create subgraph without a parent")