roskakori/cutplace

Cleanup and test errors.py

heubi95 opened this issue · 1 comments

  • Clean up Exception hierarchy.
  • Rename SYMBOLIC_NAMES_MAP to NAME_TO_ASCII_CODE_MAP.
  • Implement test_errors.py for InputLocation class
  • Delete obsolete tools.py.

Note: the Exception hierarchy has been cleaned up. Now all exceptions are either a DataError that can be fixed by providing proper data or an InterfaceError that can be fixed by providing a proper CID respectively using the API properly.

There's also a few more exceptions to represent more specific variants of DataError which currently seem useful mostly for test cases. Possibly we can collect them all with ´DataError`.