issues
search
SINTEF
/
dlite
DLite - a lightweight data-centric framework for semantic interoperability
https://SINTEF.github.io/dlite
MIT License
29
stars
6
forks
source link
Cleaned up errors and made them more maintainable.
#929
Closed
jesper-friis
closed
2 months ago
jesper-friis
commented
2 months ago
Description
Removed duplicated code
Use switch on enum to ensure that compiler warnings if not all places in the code are updated when a new error code is added.
Added NameError, PermissionError and InvalidMetadataError.
Renamed dliteSearchError to dliteLookupError for better correspondance with python.
Type of change
[x] Bug fix & code cleanup
[ ] New feature
[ ] Documentation update
[ ] Test update
Checklist for the reviewer
This checklist should be used as a help for the reviewer.
[ ] Is the change limited to one issue?
[ ] Does this PR close the issue?
[ ] Is the code easy to read and understand?
[ ] Do all new feature have an accompanying new test?
[ ] Has the documentation been updated as necessary?
Description
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.