aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

Incorrect AthenaError in Aws::Utils::Outcome<T, AthenaError> Template

Open livioso opened this issue 2 years ago • 0 comments

Describe the bug

AthenaError exists twice: First one here and second time here.

Due to a namespace problem, the Outcome template uses the incorrect AthenaError (second one), same problem exists for all these methods as well.

This causes the following code not to compile:

auto outcome = client.ListNamedQueries(request);

// this should & used to work, now fails :(
outcome.GetError().GetExceptionName(); 

Expected behavior

auto outcome = client.ListNamedQueries(request);
outcome.GetError().GetExceptionName(); 

Should work and probably use this class.

Current behavior

Aws::Utils::Outcome<T, AthenaError> template uses the incorrect AthenaError causing a compile error.

Steps to Reproduce

auto outcome = client.ListNamedQueries(request);
outcome.GetError().GetExceptionName(); 

Possible Solution

No response

AWS CPP SDK version used

main / e5dc51c

Compiler and Version used

Clang 13.0.0

Operating System and version

MacOS 11.6.1

livioso avatar Mar 14 '22 12:03 livioso