Skip to content

[9.3] Use checked exceptions in entitlement constructor rules (#145234)#145349

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

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

Conversation

@jdconrad
Copy link
Copy Markdown
Contributor

Backports the following commits to 9.3:

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:55
@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 783ecee into elastic:9.3 Mar 31, 2026
31 checks passed
@jdconrad jdconrad deleted the backport/9.3/pr-145234 branch March 31, 2026 18:21
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.3.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants