Skip to content

fix: crash when Compose Resources throws MissingResourceException#48

Merged
MaxMichel2 merged 1 commit into
mainfrom
fix/networkmock-missing-resource-crash
Jul 20, 2026
Merged

fix: crash when Compose Resources throws MissingResourceException#48
MaxMichel2 merged 1 commit into
mainfrom
fix/networkmock-missing-resource-crash

Conversation

@MaxMichel2

Copy link
Copy Markdown
Collaborator

MissingResourceException (extends Exception) was not caught by the IllegalStateException handler in MockConfigRepository.loadMockResponseFromPath, causing a fatal crash when probing response file paths that don't exist. Normalise the exception type at the NetworkMock boundary before it reaches the core module, which has no dependency on Compose Resources by design.

…r absent mock response files

MissingResourceException (extends Exception) was not caught by the
IllegalStateException handler in MockConfigRepository.loadMockResponseFromPath,
causing a fatal crash when probing response file paths that don't exist.
Normalise the exception type at the NetworkMock boundary before it reaches
the core module, which has no dependency on Compose Resources by design.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxMichel2 MaxMichel2 added this to the 0.2.0 milestone Jul 20, 2026
@MaxMichel2
MaxMichel2 requested a review from matthiaslao July 20, 2026 14:40
@MaxMichel2 MaxMichel2 self-assigned this Jul 20, 2026
@MaxMichel2 MaxMichel2 added the bug Something isn't working label Jul 20, 2026
@MaxMichel2 MaxMichel2 changed the title bug: Fix crash when Compose Resources throws MissingResourceException fix: crash when Compose Resources throws MissingResourceException Jul 20, 2026
@MaxMichel2
MaxMichel2 merged commit f5f7358 into main Jul 20, 2026
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants