aws-cloudformation / aws-cloudformation/cloudformation-cli-java-plugin
Exception details are lost when constructor with operation name is used.
- Lenguaje dominante
- Java
- Estrellas
- 30
- Forks
- 48
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Línea de trabajo
Comienza rastreando los constructores de CfnGeneralServiceException y la ruta que crea CfnInternalFailureException cuando las excepciones no se gestionan. Verifica el constructor del nombre de la operación y la ruta de fallo interno comparándolos con los ejemplos del issue; se considera terminado cuando el mensaje de la excepción original se conserva en ambos mensajes de error de CloudFormation.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100