-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patherrors.go
24 lines (22 loc) · 1.29 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package dot
import "errors"
var (
ErrNilNode = errors.New("cannot add nil node")
ErrEmptyNodeName = errors.New("node name cannot be empty")
ErrDuplicateNode = errors.New("node with this name already exists")
ErrNilEdge = errors.New("cannot add nil edge")
ErrInvalidEdge = errors.New("edge must have both source and destination nodes")
ErrNodeNotFound = errors.New("node not found in the graph")
ErrNilSubgraph = errors.New("cannot add nil subgraph")
ErrEmptySubgraphName = errors.New("subgraph name cannot be empty")
ErrDuplicateSubgraph = errors.New("subgraph with this name already exists")
ErrInvalidGraphType = errors.New("invalid graph type")
ErrUnsupportedOperation = errors.New("operation not supported for this graph type")
ErrCycleDetected = errors.New("graph contains a cycle")
ErrNoPath = errors.New("no path exists between the given nodes")
ErrDOTParsingFailed = errors.New("failed to parse DOT input")
ErrGraphvizNotFound = errors.New("Graphviz tools not found in system PATH")
ErrInvalidNodeAttribute = errors.New("invalid node attribute")
ErrInvalidEdgeAttribute = errors.New("invalid edge attribute")
ErrInvalidGraphAttribute = errors.New("invalid graph attribute")
)