/** * 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::IoTSecureTunneling; namespace Aws { namespace IoTSecureTunneling { namespace IoTSecureTunnelingErrorMapper { static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); AWSError GetErrorForName(const char* errorName) { int hashCode = HashingUtils::HashString(errorName); if (hashCode == LIMIT_EXCEEDED_HASH) { return AWSError(static_cast(IoTSecureTunnelingErrors::LIMIT_EXCEEDED), true); } return AWSError(CoreErrors::UNKNOWN, false); } } // namespace IoTSecureTunnelingErrorMapper } // namespace IoTSecureTunneling } // namespace Aws