UnauthorizedOperation is not supported yet in error handling
- Vorherrschende Sprache
- C++
- Sterne
- 2.2k
- Forks
- 1.2k
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 13
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne mit dem GetExceptionName-Aufruf und dem im Issue erwähnten zentralen Bereich der Fehlerbehandlung. Vergleiche anschließend, wie UnauthorizedOperation von EBS-, EC2- und RDS-Operationen zurückgegeben wird. Als erledigt gilt die Aufgabe, wenn UnauthorizedOperation ohne die parse-error-Meldung erkannt und überall konsistent behandelt werden kann, wo sie laut Issue auftreten kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, cpp
- Bereich
- cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100