Skip to content

Update FHIR api error handling#21

Merged
Rikki-Dev merged 4 commits intomainfrom
update_fhir_api_error_handling
Feb 26, 2026
Merged

Update FHIR api error handling#21
Rikki-Dev merged 4 commits intomainfrom
update_fhir_api_error_handling

Conversation

@Rikki-Dev
Copy link
Copy Markdown
Contributor

Adds InvalidURIError and UnauthorizedError to allow consumers to distinguish between data issues (malformed IDs) and systemic issues (auth failures). Previously these were wrapped as generic ApiError, preventing granular error handling.

Also DRYs up the duplicate rescue blocks in find and search methods.

Adds InvalidURIError and UnauthorizedError to allow consumers to distinguish between data issues (malformed IDs) and systemic issues (auth failures). Previously these were wrapped as generic ApiError, preventing granular error handling.
DRYs up the duplicate rescue blocks in find and search methods.
@Rikki-Dev Rikki-Dev marked this pull request as draft February 25, 2026 17:15
@Rikki-Dev Rikki-Dev marked this pull request as ready for review February 26, 2026 10:00
Comment thread lib/ndr_lookup/fhir/base.rb
@Rikki-Dev Rikki-Dev marked this pull request as draft February 26, 2026 10:11
@Rikki-Dev Rikki-Dev marked this pull request as ready for review February 26, 2026 10:12
@Rikki-Dev Rikki-Dev requested a review from a team as a code owner February 26, 2026 10:28
@Rikki-Dev Rikki-Dev merged commit da8a788 into main Feb 26, 2026
12 checks passed
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.

2 participants