Description:
To enhance error traceability throughout the codebase, we need to implement exception chaining. Currently, the exception handling does not provide sufficient context for the underlying errors. By using exception chaining, we can improve the clarity and traceability of errors.
Tasks:
- Identify all instances of exception handling across the codebase.
- Replace the current exception handling with exception chaining.
- Example:
except Exception as exc:
raise Exception("My own text") from exc
- Ensure all exception messages provide clear and meaningful context.
- Update any related test cases to verify the new exception chaining behavior.
References:
Refer to Python's documentation on exception chaining for more details.
Files to Update:
crategen/converters/tes_converter.py
crategen/converters/wes_converter.py
crategen/converter_manager.py
crategen/validators.py
- Any other file where exceptions are handled.
Expected Outcome:
- Improved error traceability and clarity throughout the codebase.
- Consistent and meaningful exception messages that provide context for the underlying errors.
Description:
To enhance error traceability throughout the codebase, we need to implement exception chaining. Currently, the exception handling does not provide sufficient context for the underlying errors. By using exception chaining, we can improve the clarity and traceability of errors.
Tasks:
References:
Refer to Python's documentation on exception chaining for more details.
Files to Update:
crategen/converters/tes_converter.pycrategen/converters/wes_converter.pycrategen/converter_manager.pycrategen/validators.pyExpected Outcome: