aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Exception details are lost when constructor with operation name is used.
- 主要言語
- Java
- スター
- 30
- フォーク
- 48
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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
コントリビューションガイド
調査の方向性
まず、CfnGeneralServiceException のコンストラクターと、例外が未処理の場合に CfnInternalFailureException が生成される経路を追跡します。操作名のコンストラクターと内部エラーの経路を issue の例と照合して確認します。完了の条件は、元の例外メッセージが両方の CloudFormation エラーメッセージに保持されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100