/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Client; using namespace Aws::Utils; using namespace Aws::MarketplaceCommerceAnalytics; namespace Aws { namespace MarketplaceCommerceAnalytics { namespace MarketplaceCommerceAnalyticsErrorMapper { static const int MARKETPLACE_COMMERCE_ANALYTICS_HASH = HashingUtils::HashString("MarketplaceCommerceAnalyticsException"); AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); if (hashCode == MARKETPLACE_COMMERCE_ANALYTICS_HASH) { return AWSError(static_cast(MarketplaceCommerceAnalyticsErrors::MARKETPLACE_COMMERCE_ANALYTICS), false); } return AWSError(CoreErrors::UNKNOWN, false); } } // namespace MarketplaceCommerceAnalyticsErrorMapper } // namespace MarketplaceCommerceAnalytics } // namespace Aws