feat: more pythonic error parent class #48

Merged
HideyoshiNakazone merged 1 commits from feature/explicit-exception-type into main 2025-09-14 04:42:11 +00:00
HideyoshiNakazone commented 2025-09-14 04:41:43 +00:00 (Migrated from github.com)

This pull request updates the exception hierarchy for InternalAssertionException to improve how internal assertion errors are handled and tested.

Exception hierarchy update:

  • Changed the base class of InternalAssertionException from AssertionError to RuntimeError in jambo/exceptions/internal_assertion_exception.py.

Test adjustments:

  • Updated the inheritance test in tests/exceptions/test_internal_assertion_exception.py to check that InternalAssertionException is a subclass of RuntimeError instead of AssertionError.
This pull request updates the exception hierarchy for `InternalAssertionException` to improve how internal assertion errors are handled and tested. Exception hierarchy update: * Changed the base class of `InternalAssertionException` from `AssertionError` to `RuntimeError` in `jambo/exceptions/internal_assertion_exception.py`. Test adjustments: * Updated the inheritance test in `tests/exceptions/test_internal_assertion_exception.py` to check that `InternalAssertionException` is a subclass of `RuntimeError` instead of `AssertionError`.
Sign in to join this conversation.