Feature/explicit exception type #47
Reference in New Issue
Block a user
Delete Branch "feature/explicit-exception-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request refactors how schema validation errors are handled throughout the codebase by introducing two custom exception classes:
InvalidSchemaExceptionandUnsupportedSchemaException. These new exceptions replace genericValueErrorandTypeErrorusages, providing more descriptive error messages and additional context about the source of the error.Exception Handling Improvements
InvalidSchemaExceptionandUnsupportedSchemaExceptionin thejambo/exceptionspackage, with support for contextual information such as the problematic field and underlying cause. (jambo/exceptions/invalid_schema_exception.py,jambo/exceptions/unsupported_schema_exception.py,jambo/exceptions/__init__.py) [1] [2] [3]Types Package Improvements
jambo/types/__init__.pyto improve type import clarity and consistency.Testing Adjustments
tests/test_schema_converter.py)Codecov Report
✅ All modified and coverable lines are covered by tests.
📢 Thoughts on this report? Let us know!