Skip to content

Use IllegalCallerException to signal wrong caller in internal classes (VectorizationProvider, TestSecrets)#15877

Merged
uschindler merged 1 commit into
apache:mainfrom
uschindler:dev/change-invalid-caller-ex
Mar 25, 2026
Merged

Use IllegalCallerException to signal wrong caller in internal classes (VectorizationProvider, TestSecrets)#15877
uschindler merged 1 commit into
apache:mainfrom
uschindler:dev/change-invalid-caller-ex

Conversation

@uschindler
Copy link
Copy Markdown
Contributor

Split this from #15867, see other PR for background (thanks @danmuzi).

This basically only changes the exception for VectorizationProvider and TestSecrets if the method is called by wrong calle (outside test framework or known classes). It also refactors the code from #15864 a bit to have only one method throwing the exception.

… (VectorizationProvider, TestSecrets)

+ cleanup code a bit
@uschindler uschindler self-assigned this Mar 25, 2026
@github-actions github-actions Bot added this to the 10.5.0 milestone Mar 25, 2026
@uschindler
Copy link
Copy Markdown
Contributor Author

This will be backported, because we changed the exceptions anyways (some were AssertionFailed, now UnsupportedOperationEx). This makes it clear: "you're not allowed to call a method". It wont break backwards, as code should not call those methods anyways.

@uschindler uschindler merged commit 1b7d549 into apache:main Mar 25, 2026
13 checks passed
@uschindler uschindler deleted the dev/change-invalid-caller-ex branch March 25, 2026 20:20
asf-gitbox-commits pushed a commit that referenced this pull request Mar 25, 2026
… (VectorizationProvider, TestSecrets) (#15877)

+ cleanup code a bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant