-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom exceptions for set and parse errors
Ref. #510
- Loading branch information
Showing
5 changed files
with
54 additions
and
38 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from .bitstring import Bitstring # noqa: F401 | ||
from .error import PyRFLXError # noqa: F401 | ||
from .package import Package # noqa: F401 | ||
from .pyrflx import PyRFLX # noqa: F401 | ||
from .typevalue import ( # noqa: F401 | ||
ArrayValue, | ||
EnumValue, | ||
IntegerValue, | ||
MessageValue, | ||
NotInitializedError, | ||
OpaqueValue, | ||
TypeValue, | ||
) |
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,7 @@ | ||
from rflx.error import RecordFluxError, Severity, Subsystem | ||
|
||
|
||
class PyRFLXError(RecordFluxError): | ||
def __init__(self, message: str) -> None: | ||
super().__init__() | ||
self.append(message, Subsystem.PYRFLX, Severity.ERROR) |
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