Exception details are lost when constructor with operation name is used.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách lần theo các constructor của CfnGeneralServiceException và đường dẫn tạo CfnInternalFailureException khi các exception không được xử lý. Xác minh constructor tên thao tác và đường dẫn lỗi nội bộ dựa trên các ví dụ trong issue; hoàn tất có nghĩa là thông báo exception ban đầu được giữ lại trong cả hai thông báo lỗi CloudFormation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When the exception is thrown with operation name the original errorMessage is lost.
For example
throw new CfnGeneralServiceException("Operation", new RuntimeException("something happend");
results in "Error occurred during operation 'Operation'." message.
If operation parameter would not be passed
throw new CfnGeneralServiceException(new RuntimeException("something happend")
then the message would contain "something happend".
There are existing implementation's of resources that rethrow exceptions with operation field set, and the original message is thrown. What is more - if any exception will be unhandled explicitly CfnInternalFailureException will be thrown without errorMessage from the original exception and CloudFormation console will just display "Internal failure... " kind of message
- Ngôn ngữ chính
- Java
- Star
- 30
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của aws-cloudformation/cloudformation-cli-java-plugin
-
Runtime compatibility issue Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
aws-cloudformation/cloudformation-cli-java-plugin#415 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
-
injectCredentialsAndInvokeV2 method in proxy class doesn't support API's like PutObject from S3. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của aws-cloudformation/cloudformation-cli-java-plugin
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Đang mở1.0.0-alpha2 Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wso2/dpdp-accelerator#272 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100