Skip to content

[9.2] Use checked exceptions in entitlement constructor rules (#145234)#145351

Merged
elasticsearchmachine merged 1 commit intoelastic:9.2from
jdconrad:backport/9.2/pr-145234
Mar 31, 2026
Merged

[9.2] Use checked exceptions in entitlement constructor rules (#145234)#145351
elasticsearchmachine merged 1 commit intoelastic:9.2from
jdconrad:backport/9.2/pr-145234

Conversation

@jdconrad
Copy link
Copy Markdown
Contributor

Backports the following commits to 9.2:

Constructor entitlement rules updated to throw appropriate 
checked exceptions instead of NotEntitledException (a 
RuntimeException). Method references (IOException::new) 
are used where the exception has a (Throwable) constructor; 
lambdas with initCause are used where no such constructor 
exists.
@jdconrad jdconrad requested a review from a team as a code owner March 31, 2026 16:57
@jdconrad jdconrad added :Core/Infra/Entitlements Entitlements infrastructure >refactoring auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Mar 31, 2026
@elasticsearchmachine elasticsearchmachine merged commit 5c0b6a2 into elastic:9.2 Mar 31, 2026
32 checks passed
@jdconrad jdconrad deleted the backport/9.2/pr-145234 branch March 31, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Entitlements Entitlements infrastructure >refactoring Team:Core/Infra Meta label for core/infra team v9.2.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants