AWS SDK for C++  1.8.24
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Client::AWSErrorMarshaller Class Referenceabstract

#include <AWSErrorMarshaller.h>

+ Inheritance diagram for Aws::Client::AWSErrorMarshaller:

Public Member Functions

virtual ~AWSErrorMarshaller ()
 
virtual AWSError< CoreErrorsMarshall (const Aws::Http::HttpResponse &response) const =0
 
virtual AWSError< CoreErrorsFindErrorByName (const char *exceptionName) const
 
virtual AWSError< CoreErrorsFindErrorByHttpResponseCode (Aws::Http::HttpResponseCode code) const
 
virtual Aws::String ExtractRegion (const AWSError< CoreErrors > &) const
 
virtual Aws::String ExtractEndpoint (const AWSError< CoreErrors > &) const
 

Protected Member Functions

AWSError< CoreErrorsMarshall (const Aws::String &exceptionName, const Aws::String &message) const
 

Detailed Description

Marshaller for core error types.

Definition at line 41 of file AWSErrorMarshaller.h.

Constructor & Destructor Documentation

◆ ~AWSErrorMarshaller()

virtual Aws::Client::AWSErrorMarshaller::~AWSErrorMarshaller ( )
inlinevirtual

Definition at line 44 of file AWSErrorMarshaller.h.

Member Function Documentation

◆ ExtractEndpoint()

virtual Aws::String Aws::Client::AWSErrorMarshaller::ExtractEndpoint ( const AWSError< CoreErrors > &  ) const
inlinevirtual

Attempts to extract endpoint from error.

Reimplemented in Aws::Client::S3ErrorMarshaller.

Definition at line 63 of file AWSErrorMarshaller.h.

◆ ExtractRegion()

virtual Aws::String Aws::Client::AWSErrorMarshaller::ExtractRegion ( const AWSError< CoreErrors > &  ) const
inlinevirtual

Attempts to extract region from error.

Reimplemented in Aws::Client::S3ErrorMarshaller.

Definition at line 59 of file AWSErrorMarshaller.h.

◆ FindErrorByHttpResponseCode()

virtual AWSError<CoreErrors> Aws::Client::AWSErrorMarshaller::FindErrorByHttpResponseCode ( Aws::Http::HttpResponseCode  code) const
virtual

◆ FindErrorByName()

virtual AWSError<CoreErrors> Aws::Client::AWSErrorMarshaller::FindErrorByName ( const char *  exceptionName) const
virtual

Attempts to finds an error code by the exception name. Otherwise returns CoreErrors::UNKNOWN as the error type.

Reimplemented in Aws::Client::AccessAnalyzerErrorMarshaller, Aws::Client::ACMErrorMarshaller, Aws::Client::ACMPCAErrorMarshaller, Aws::Client::AlexaForBusinessErrorMarshaller, Aws::Client::AmplifyErrorMarshaller, Aws::Client::APIGatewayErrorMarshaller, Aws::Client::ApiGatewayManagementApiErrorMarshaller, Aws::Client::ApiGatewayV2ErrorMarshaller, Aws::Client::AppConfigErrorMarshaller, Aws::Client::ApplicationAutoScalingErrorMarshaller, Aws::Client::ApplicationInsightsErrorMarshaller, Aws::Client::AppMeshErrorMarshaller, Aws::Client::AppStreamErrorMarshaller, Aws::Client::AppSyncErrorMarshaller, Aws::Client::AthenaErrorMarshaller, Aws::Client::AutoScalingErrorMarshaller, Aws::Client::AutoScalingPlansErrorMarshaller, Aws::Client::MigrationHubErrorMarshaller, Aws::Client::TransferErrorMarshaller, Aws::Client::BackupErrorMarshaller, Aws::Client::BatchErrorMarshaller, Aws::Client::BudgetsErrorMarshaller, Aws::Client::CostExplorerErrorMarshaller, Aws::Client::ChimeErrorMarshaller, Aws::Client::Cloud9ErrorMarshaller, Aws::Client::CloudDirectoryErrorMarshaller, Aws::Client::CloudFormationErrorMarshaller, Aws::Client::CloudFrontErrorMarshaller, Aws::Client::CloudHSMErrorMarshaller, Aws::Client::CloudHSMV2ErrorMarshaller, Aws::Client::CloudSearchErrorMarshaller, Aws::Client::CloudSearchDomainErrorMarshaller, Aws::Client::CloudTrailErrorMarshaller, Aws::Client::CodeArtifactErrorMarshaller, Aws::Client::CodeBuildErrorMarshaller, Aws::Client::CodeCommitErrorMarshaller, Aws::Client::CodeDeployErrorMarshaller, Aws::Client::CodeGuruReviewerErrorMarshaller, Aws::Client::CodeGuruProfilerErrorMarshaller, Aws::Client::CodePipelineErrorMarshaller, Aws::Client::CodeStarErrorMarshaller, Aws::Client::CodeStarconnectionsErrorMarshaller, Aws::Client::CodeStarNotificationsErrorMarshaller, Aws::Client::CognitoIdentityErrorMarshaller, Aws::Client::CognitoIdentityProviderErrorMarshaller, Aws::Client::CognitoSyncErrorMarshaller, Aws::Client::ComprehendErrorMarshaller, Aws::Client::ComprehendMedicalErrorMarshaller, Aws::Client::ComputeOptimizerErrorMarshaller, Aws::Client::ConfigServiceErrorMarshaller, Aws::Client::ConnectErrorMarshaller, Aws::Client::ConnectParticipantErrorMarshaller, Aws::Client::CostandUsageReportServiceErrorMarshaller, Aws::Client::DataExchangeErrorMarshaller, Aws::Client::DataPipelineErrorMarshaller, Aws::Client::DataSyncErrorMarshaller, Aws::Client::DAXErrorMarshaller, Aws::Client::DetectiveErrorMarshaller, Aws::Client::DeviceFarmErrorMarshaller, Aws::Client::DirectConnectErrorMarshaller, Aws::Client::ApplicationDiscoveryServiceErrorMarshaller, Aws::Client::DLMErrorMarshaller, Aws::Client::DatabaseMigrationServiceErrorMarshaller, Aws::Client::DocDBErrorMarshaller, Aws::Client::DirectoryServiceErrorMarshaller, Aws::Client::DynamoDBErrorMarshaller, Aws::Client::DynamoDBStreamsErrorMarshaller, Aws::Client::EBSErrorMarshaller, Aws::Client::EC2ErrorMarshaller, Aws::Client::EC2InstanceConnectErrorMarshaller, Aws::Client::ECRErrorMarshaller, Aws::Client::ECSErrorMarshaller, Aws::Client::EKSErrorMarshaller, Aws::Client::ElasticInferenceErrorMarshaller, Aws::Client::ElastiCacheErrorMarshaller, Aws::Client::ElasticBeanstalkErrorMarshaller, Aws::Client::EFSErrorMarshaller, Aws::Client::ElasticLoadBalancingErrorMarshaller, Aws::Client::ElasticLoadBalancingv2ErrorMarshaller, Aws::Client::EMRErrorMarshaller, Aws::Client::ElasticTranscoderErrorMarshaller, Aws::Client::SESErrorMarshaller, Aws::Client::ElasticsearchServiceErrorMarshaller, Aws::Client::EventBridgeErrorMarshaller, Aws::Client::CloudWatchEventsErrorMarshaller, Aws::Client::FirehoseErrorMarshaller, Aws::Client::FMSErrorMarshaller, Aws::Client::ForecastServiceErrorMarshaller, Aws::Client::ForecastQueryServiceErrorMarshaller, Aws::Client::FraudDetectorErrorMarshaller, Aws::Client::FSxErrorMarshaller, Aws::Client::GameLiftErrorMarshaller, Aws::Client::GlacierErrorMarshaller, Aws::Client::GlobalAcceleratorErrorMarshaller, Aws::Client::GlueErrorMarshaller, Aws::Client::GreengrassErrorMarshaller, Aws::Client::GroundStationErrorMarshaller, Aws::Client::GuardDutyErrorMarshaller, Aws::Client::HealthErrorMarshaller, Aws::Client::HoneycodeErrorMarshaller, Aws::Client::IAMErrorMarshaller, Aws::Client::ImagebuilderErrorMarshaller, Aws::Client::ImportExportErrorMarshaller, Aws::Client::InspectorErrorMarshaller, Aws::Client::IoTErrorMarshaller, Aws::Client::IoTDataPlaneErrorMarshaller, Aws::Client::IoTJobsDataPlaneErrorMarshaller, Aws::Client::IoT1ClickDevicesServiceErrorMarshaller, Aws::Client::IoT1ClickProjectsErrorMarshaller, Aws::Client::IoTAnalyticsErrorMarshaller, Aws::Client::IoTEventsErrorMarshaller, Aws::Client::IoTEventsDataErrorMarshaller, Aws::Client::IoTSecureTunnelingErrorMarshaller, Aws::Client::IoTSiteWiseErrorMarshaller, Aws::Client::IoTThingsGraphErrorMarshaller, Aws::Client::IVSErrorMarshaller, Aws::Client::KafkaErrorMarshaller, Aws::Client::KendraErrorMarshaller, Aws::Client::KinesisErrorMarshaller, Aws::Client::KinesisVideoArchivedMediaErrorMarshaller, Aws::Client::KinesisVideoMediaErrorMarshaller, Aws::Client::KinesisVideoSignalingChannelsErrorMarshaller, Aws::Client::KinesisAnalyticsErrorMarshaller, Aws::Client::KinesisAnalyticsV2ErrorMarshaller, Aws::Client::KinesisVideoErrorMarshaller, Aws::Client::KMSErrorMarshaller, Aws::Client::LakeFormationErrorMarshaller, Aws::Client::LambdaErrorMarshaller, Aws::Client::LexRuntimeServiceErrorMarshaller, Aws::Client::LexModelBuildingServiceErrorMarshaller, Aws::Client::LicenseManagerErrorMarshaller, Aws::Client::LightsailErrorMarshaller, Aws::Client::CloudWatchLogsErrorMarshaller, Aws::Client::MachineLearningErrorMarshaller, Aws::Client::MacieErrorMarshaller, Aws::Client::Macie2ErrorMarshaller, Aws::Client::ManagedBlockchainErrorMarshaller, Aws::Client::MarketplaceCatalogErrorMarshaller, Aws::Client::MarketplaceEntitlementServiceErrorMarshaller, Aws::Client::MarketplaceCommerceAnalyticsErrorMarshaller, Aws::Client::MediaConnectErrorMarshaller, Aws::Client::MediaConvertErrorMarshaller, Aws::Client::MediaLiveErrorMarshaller, Aws::Client::MediaPackageErrorMarshaller, Aws::Client::MediaPackageVodErrorMarshaller, Aws::Client::MediaStoreErrorMarshaller, Aws::Client::MediaStoreDataErrorMarshaller, Aws::Client::MediaTailorErrorMarshaller, Aws::Client::MarketplaceMeteringErrorMarshaller, Aws::Client::MigrationHubConfigErrorMarshaller, Aws::Client::MobileErrorMarshaller, Aws::Client::MobileAnalyticsErrorMarshaller, Aws::Client::CloudWatchErrorMarshaller, Aws::Client::MQErrorMarshaller, Aws::Client::MTurkErrorMarshaller, Aws::Client::NeptuneErrorMarshaller, Aws::Client::NetworkManagerErrorMarshaller, Aws::Client::OpsWorksErrorMarshaller, Aws::Client::OpsWorksCMErrorMarshaller, Aws::Client::OrganizationsErrorMarshaller, Aws::Client::OutpostsErrorMarshaller, Aws::Client::PersonalizeErrorMarshaller, Aws::Client::PersonalizeEventsErrorMarshaller, Aws::Client::PersonalizeRuntimeErrorMarshaller, Aws::Client::PIErrorMarshaller, Aws::Client::PinpointErrorMarshaller, Aws::Client::PinpointEmailErrorMarshaller, Aws::Client::PollyErrorMarshaller, Aws::Client::PricingErrorMarshaller, Aws::Client::QLDBErrorMarshaller, Aws::Client::QLDBSessionErrorMarshaller, Aws::Client::QuickSightErrorMarshaller, Aws::Client::RAMErrorMarshaller, Aws::Client::RDSErrorMarshaller, Aws::Client::RDSDataServiceErrorMarshaller, Aws::Client::RedshiftErrorMarshaller, Aws::Client::RekognitionErrorMarshaller, Aws::Client::ResourceGroupsErrorMarshaller, Aws::Client::ResourceGroupsTaggingAPIErrorMarshaller, Aws::Client::RoboMakerErrorMarshaller, Aws::Client::Route53ErrorMarshaller, Aws::Client::Route53DomainsErrorMarshaller, Aws::Client::Route53ResolverErrorMarshaller, Aws::Client::S3ErrorMarshaller, Aws::Client::S3ControlErrorMarshaller, Aws::Client::SageMakerErrorMarshaller, Aws::Client::AugmentedAIRuntimeErrorMarshaller, Aws::Client::SageMakerRuntimeErrorMarshaller, Aws::Client::SavingsPlansErrorMarshaller, Aws::Client::SchemasErrorMarshaller, Aws::Client::SimpleDBErrorMarshaller, Aws::Client::SecretsManagerErrorMarshaller, Aws::Client::SecurityHubErrorMarshaller, Aws::Client::ServerlessApplicationRepositoryErrorMarshaller, Aws::Client::ServiceQuotasErrorMarshaller, Aws::Client::ServiceCatalogErrorMarshaller, Aws::Client::ServiceDiscoveryErrorMarshaller, Aws::Client::SESV2ErrorMarshaller, Aws::Client::ShieldErrorMarshaller, Aws::Client::SignerErrorMarshaller, Aws::Client::SMSErrorMarshaller, Aws::Client::PinpointSMSVoiceErrorMarshaller, Aws::Client::SnowballErrorMarshaller, Aws::Client::SNSErrorMarshaller, Aws::Client::SQSErrorMarshaller, Aws::Client::SSMErrorMarshaller, Aws::Client::SSOErrorMarshaller, Aws::Client::SSOOIDCErrorMarshaller, Aws::Client::SFNErrorMarshaller, Aws::Client::StorageGatewayErrorMarshaller, Aws::Client::STSErrorMarshaller, Aws::Client::SupportErrorMarshaller, Aws::Client::SWFErrorMarshaller, Aws::Client::SyntheticsErrorMarshaller, Aws::Client::TextractErrorMarshaller, Aws::Client::TranscribeServiceErrorMarshaller, Aws::Client::TranscribeStreamingServiceErrorMarshaller, Aws::Client::TranslateErrorMarshaller, Aws::Client::WAFErrorMarshaller, Aws::Client::WAFRegionalErrorMarshaller, Aws::Client::WAFV2ErrorMarshaller, Aws::Client::WorkDocsErrorMarshaller, Aws::Client::WorkLinkErrorMarshaller, Aws::Client::WorkMailErrorMarshaller, Aws::Client::WorkMailMessageFlowErrorMarshaller, Aws::Client::WorkSpacesErrorMarshaller, and Aws::Client::XRayErrorMarshaller.

◆ Marshall() [1/2]

virtual AWSError<CoreErrors> Aws::Client::AWSErrorMarshaller::Marshall ( const Aws::Http::HttpResponse response) const
pure virtual

Converts an exceptionName and message into an Error object, if it can be parsed. Otherwise, it returns and AWSError with CoreErrors::UNKNOWN as the error type.

Implemented in Aws::Client::XmlErrorMarshaller, and Aws::Client::JsonErrorMarshaller.

◆ Marshall() [2/2]

AWSError<CoreErrors> Aws::Client::AWSErrorMarshaller::Marshall ( const Aws::String exceptionName,
const Aws::String message 
) const
protected

The documentation for this class was generated from the following file: