-
Notifications
You must be signed in to change notification settings - Fork 273
telemetry(amazonq): expose FileCreationFailed exceptions #5696
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
...unity/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevExceptions.kt
Fixed
Show fixed
Hide fixed
...unity/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevExceptions.kt
Fixed
Show fixed
Hide fixed
6a3560a to
6002f9b
Compare
| ClientException(message("amazonqFeatureDev.exception.prompt_refusal"), operation, desc, cause) | ||
|
|
||
| class FileCreationFailedException(operation: String, desc: String?, cause: Throwable? = null) : | ||
| ServiceException(message("amazonqFeatureDev.exception.failed_generation"), operation, desc, cause) |
Check failure
Code scanning / QDJVMC
Invalid property key Error
| ClientException(message("amazonqFeatureDev.exception.prompt_refusal"), operation, desc, cause) | ||
|
|
||
| class FileCreationFailedException(operation: String, desc: String?, cause: Throwable? = null) : | ||
| ServiceException(message("amazonqFeatureDev.exception.failed_generation"), operation, desc, cause) |
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.
The comment below is likely correct. Is there a definition for amazonqFeatureDev.exception.failed_generation in the strings file?
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.
Verified offline that it does exist
| ClientException(message("amazonqFeatureDev.exception.prompt_refusal"), operation, desc, cause) | ||
|
|
||
| class FileCreationFailedException(operation: String, desc: String?, cause: Throwable? = null) : | ||
| ServiceException(message("amazonqFeatureDev.exception.failed_generation"), operation, desc, cause) |
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.
Verified offline that it does exist
Problem
FileCreationFailed exceptions are displayed as UnknownException in telemetry. This exception is new and we want to separate this out from other unknown exceptions.
Solution
Return API service error with FileCreationFailedException
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.