aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Exception details are lost when constructor with operation name is used.
- Linguagem predominante
- Java
- Estrelas
- 30
- Forks
- 48
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Direção de pesquisa
Comece rastreando os construtores de CfnGeneralServiceException e o caminho que cria CfnInternalFailureException quando as exceções não são tratadas. Verifique o construtor do nome da operação e o caminho de falha interna em relação aos exemplos na issue; considera-se concluído quando a mensagem da exceção original é mantida em ambas as mensagens de erro do CloudFormation.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- backend
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100