-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gabrielguarisa/feature/base-node
Feature/base node
- Loading branch information
Showing
13 changed files
with
360 additions
and
259 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
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
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 |
---|---|---|
@@ -1,2 +1,23 @@ | ||
class RunnerException(Exception): # pragma: no cover | ||
class GurunException(Exception): | ||
""" | ||
Base class for all exceptions in Gurun. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class RunnerException(GurunException): | ||
""" | ||
Raised when something goes wrong with the runner. | ||
""" | ||
|
||
pass | ||
|
||
|
||
class GurunTypeError(GurunException, TypeError): | ||
""" | ||
Raised when a type error occurs. | ||
""" | ||
|
||
def __init__(self, var_name: str, expected_type: str, received_type: str) -> None: | ||
super().__init__(f"{var_name} must be {expected_type}, got {received_type}") |
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
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
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
Oops, something went wrong.