Skip to content

Conversation

@SFJohnson24
Copy link
Collaborator

@SFJohnson24 SFJohnson24 commented Nov 20, 2025

This PR adds custom exceptions that get raised during several key parts of validation that were skipped by error coverage

  • operation execution
  • dataset builder build()
  • preprocessing of relrec/supp/match datasets
    Custom exceptions and messages with key metadata have been created to propagate up to validate single dataset which contains the try/except block that handles exceptions.

the attached issue has a rule/dataset that fails with relrec merge. Of note--i kept the caught stack trace as it is useful for development resolution of bugs but the added metadata context in the error messages should help rule authors with. Also of note--I was uncertain whether to assign a rule skip or not for these---I though it would be worthwhile to skip the rule to continue execution despite these being 'execution errors'.

@SFJohnson24 SFJohnson24 self-assigned this Nov 20, 2025
@SFJohnson24 SFJohnson24 marked this pull request as ready for review November 20, 2025 20:17
Copy link
Collaborator

@RamilCDISC RamilCDISC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please resolve the conflicts on the branch too. Thank you.

@SFJohnson24
Copy link
Collaborator Author

I also looked into the ticket Gerry referenced today in review #1432 This logic does not interfere with that portion of the codebase

Copy link
Collaborator

@RamilCDISC RamilCDISC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR adds exception handling to improve error handling. This helps skipping rules instead of just breaking the execution. The PR was validated by:

  1. Reviewing the PR code for any unwanted changes or comments.
  2. Reviewing the PR Logic in context of AC.
  3. Validating all unit and regression testing pass.
  4. Ensuring all related testing is updated.
  5. Ensuring all the error message are clear and coherent.
  6. Ensuring the new custom exceptions follow the pattern of previous custom exceptions.
  7. Ensuring the exception is fully representative of code in the try block.
  8. Ensuring the validation does not break where it should just skip the in-processing rule.

@RamilCDISC RamilCDISC merged commit b097c52 into main Nov 25, 2025
11 checks passed
@RamilCDISC RamilCDISC deleted the errorhandling_pre branch November 25, 2025 21:12
@SFJohnson24 SFJohnson24 mentioned this pull request Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants