-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CLI entities command & add feature-views command (#1471)
Signed-off-by: Tsotne Tabidze <tsotne@tecton.ai>
- Loading branch information
Tsotne Tabidze
authored
Apr 15, 2021
1 parent
e087414
commit ec265f9
Showing
4 changed files
with
105 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class FeastObjectNotFoundException(Exception): | ||
pass | ||
|
||
|
||
class EntityNotFoundException(FeastObjectNotFoundException): | ||
def __init__(self, project, name): | ||
super().__init__(f"Entity {name} does not exist in project {project}") | ||
|
||
|
||
class FeatureViewNotFoundException(FeastObjectNotFoundException): | ||
def __init__(self, project, name): | ||
super().__init__(f"Feature view {name} does not exist in project {project}") | ||
|
||
|
||
class FeatureTableNotFoundException(FeastObjectNotFoundException): | ||
def __init__(self, project, name): | ||
super().__init__(f"Feature table {name} does not exist in project {project}") |
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