本文整理汇总了C++中AWSError::GetErrorType方法的典型用法代码示例。如果您正苦于以下问题:C++ AWSError::GetErrorType方法的具体用法?C++ AWSError::GetErrorType怎么用?C++ AWSError::GetErrorType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AWSError
的用法示例。
在下文中一共展示了AWSError::GetErrorType方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
AWSError<CoreErrors> AWSErrorMarshaller::Marshall(const Aws::String& exceptionName, const Aws::String& message) const
{
auto locationOfPound = exceptionName.find_first_of('#');
auto locationOfColon = exceptionName.find_first_of(':');
Aws::String formalExceptionName;
if (locationOfPound != Aws::String::npos)
{
formalExceptionName = exceptionName.substr(locationOfPound + 1);
}
else if (locationOfColon != Aws::String::npos)
{
formalExceptionName = exceptionName.substr(0, locationOfColon);
}
else
{
formalExceptionName = exceptionName;
}
AWSError<CoreErrors> error = FindErrorByName(formalExceptionName.c_str());
if (error.GetErrorType() != CoreErrors::UNKNOWN)
{
AWS_LOG_WARN(logTag, "Encountered AWSError\n%s\n%s:", formalExceptionName.c_str(), message.c_str());
error.SetExceptionName(formalExceptionName);
error.SetMessage(message);
return error;
}
AWS_LOG_WARN(logTag, "Encountered Unknown AWSError\n%s\n%s:", exceptionName.c_str(), message.c_str());
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, exceptionName, "Unable to parse ExceptionName: " + exceptionName + " Message: " + message, false);
}
示例2: FindErrorByName
AWSError<CoreErrors> ElasticTranscoderErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = ElasticTranscoderErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}
示例3: FindErrorByName
AWSError<CoreErrors> Route53ErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = Route53ErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}
示例4: FindErrorByName
AWSError<CoreErrors> DatabaseMigrationServiceErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = DatabaseMigrationServiceErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}
示例5: FindErrorByName
AWSError<CoreErrors> MarketplaceMeteringErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = MarketplaceMeteringErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}
示例6: FindErrorByName
AWSError<CoreErrors> ApiGatewayManagementApiErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = ApiGatewayManagementApiErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}
示例7: FindErrorByName
AWSError<CoreErrors> ApplicationAutoScalingErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = ApplicationAutoScalingErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}