Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wax
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
wax
Commits
1a9a2e25
Commit
1a9a2e25
authored
4 weeks ago
by
Jakub Ziebinski
Browse files
Options
Downloads
Patches
Plain Diff
Implementation of the custom exception raised while importing from not compiled proto package
parent
13c29fc2
No related branches found
No related tags found
1 merge request
!288
Move compiled proto package to the private part
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/wax/_private/exceptions.py
+11
-0
11 additions, 0 deletions
python/wax/_private/exceptions.py
with
11 additions
and
0 deletions
python/wax/_private/exceptions.py
+
11
−
0
View file @
1a9a2e25
...
...
@@ -7,6 +7,17 @@ class WaxError(Exception):
"""
Base exception for all wax operations.
"""
class
WaxImportProtoBeforeCompileError
(
WaxError
):
"""
Raised when trying to import a proto file before compiling it.
"""
def
__init__
(
self
)
->
None
:
self
.
message
=
(
"
You must compile the proto file before importing it.
"
"
Please use `compile_proto.sh` or `build_wax.sh` script.
"
)
super
().
__init__
(
self
.
message
)
class
WaxValidationFailedError
(
WaxError
):
"""
Raises when validation using wax failed.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment