UnauthorizedOperation is not supported yet in error handling
- Lenguaje dominante
- C++
- Estrellas
- 2.2k
- Forks
- 1.2k
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 13
Descripción
### Describe the bug
If you block a region via AWS Control Tower, any operation (EBS, EC2, RDS) will return UnauthorizedOperation error.
This error can not be handled in a special way. Thats not good, but not a bug yet.
If you try to use `GetExceptionName` on the error, you get
` Unable to parse ExceptionName: UnauthorizedOperation`
as a result. And thats wrong.
```
// ...
const auto error = outcome.GetError();
// if(error.GetErrorType() == Aws::RDS::RDSErrors::UNAUTHORIZED_OPERATION) // -> not possible, since error does not exist
// {}
error.GetExceptionName() // -> returns "Unable to parse ExceptionName: UnauthorizedOperation"
```
### Expected Behavior
UnauthorizedOperation should be handled in all places where it can happen (i.e "core"?)
### Current Behavior
see "Describe the bug"
### Reproduction Steps
see "Describe the bug"
### Possible Solution
see "Describe the bug"
### Additional Information/Context
_No response_
### AWS CPP SDK version used
1.9.285
### Compiler and Version used
VS2022
### Operating System and version
Windows 11
Guía de contribución
Línea de trabajo
Comienza con la llamada a GetExceptionName y el área central de gestión de errores mencionada en el issue; después, compara cómo devuelven UnauthorizedOperation las operaciones de EBS, EC2 y RDS. Se considera terminado cuando UnauthorizedOperation se reconoce sin el mensaje parse-error y puede gestionarse de forma coherente en todos los lugares en los que el issue indica que puede producirse.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- aws, cpp
- Área
- cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100