-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return a well-defined type when an invalid graph is detected
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package workflow | ||
|
||
const ( | ||
_invalidGraphMsg = "dependency graph is unsolvable; check for cycles or missing dependencies" | ||
) | ||
|
||
// An InvalidGraphError is use to mark a dependency graph as being invalid. | ||
// It is returned when a graph has unmet dependencies or cycles. | ||
type InvalidGraphError struct{} | ||
|
||
func (ige InvalidGraphError) Error() string { | ||
return _invalidGraphMsg | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters