Skip to content
Snippets Groups Projects
Commit 1a9a2e25 authored by Jakub Ziebinski's avatar Jakub Ziebinski
Browse files

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!288Move compiled proto package to the private part
......@@ -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."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment