-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
AWS catalog: Provide custom error message when plugin is not available in user license #13651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Results - Preflight, Unit23 084 tests ±0 21 225 ✅ ±0 6m 6s ⏱️ -16s Results for commit 1075e75. ± Comparison against base commit fcd464a. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 2h 36m 39s ⏱️ Results for commit 1075e75. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! This looks good, nice work, great cleanup! Great to see the catalog being put to use 👌
Only have a minor nit to reduce indentation a bit, but nothing blocking!
Motivation
When a plugin is not supported by the user's license, we need to provide a clear and appropriate message to the customer. This PR improves the current approach in #13344 , which catches the
PluginDisabledexception in theServiceExceptionSerializer. The proposed changes introduce a new exception class and catch thePluginDisabledexception earlier in theServiceLoader.As a result,
PluginNotIncludedInUserLicenseError, a subclass ofNotImplementedError, is raised. This exception is then handled by theServiceExceptionSerializer, allowing the AWS catalog to generate and provide a custom error message when a plugin is not included in the user's license.Changes
PluginNotIncludedInUserLicenseError, a subclass ofNotImplementedErrorServiceExceptionSerializer, ifPluginNotIncludedInUserLicenseErroris being processed, no operation name is provided to catalog because the operation name is irrelevant in this case.PluginDisabledexception in theServiceLoaderif exception reason is that the plugin is not included in the user's licenseTests
PluginNotIncludedInUserLicenseErrorwas tested locallyRelated
FLC-183