Class: AdManagerApi::Errors::ApiException
- Inherits:
-
AdsCommon::Errors::ApiException
- Object
- AdsCommon::Errors::ApiException
- AdManagerApi::Errors::ApiException
- Defined in:
- lib/ad_manager_api/errors.rb
Overview
This class encapsulates base class for API exceptions. More specific exceptions are generated based on Service WSDL.
Direct Known Subclasses
V202502::AdRuleService::ApplicationException, V202502::AdjustmentService::ApplicationException, V202502::AdsTxtService::ApplicationException, V202502::AudienceSegmentService::ApplicationException, V202502::CdnConfigurationService::ApplicationException, V202502::CmsMetadataService::ApplicationException, V202502::CompanyService::ApplicationException, V202502::ContactService::ApplicationException, V202502::ContentBundleService::ApplicationException, V202502::ContentService::ApplicationException, V202502::CreativeService::ApplicationException, V202502::CreativeSetService::ApplicationException, V202502::CreativeTemplateService::ApplicationException, V202502::CreativeWrapperService::ApplicationException, V202502::CustomFieldService::ApplicationException, V202502::CustomTargetingService::ApplicationException, V202502::DaiAuthenticationKeyService::ApplicationException, V202502::DaiEncodingProfileService::ApplicationException, V202502::ForecastService::ApplicationException, V202502::InventoryService::ApplicationException, V202502::LabelService::ApplicationException, V202502::LineItemCreativeAssociationService::ApplicationException, V202502::LineItemService::ApplicationException, V202502::LineItemTemplateService::ApplicationException, V202502::LiveStreamEventService::ApplicationException, V202502::MobileApplicationService::ApplicationException, V202502::NativeStyleService::ApplicationException, V202502::NetworkService::ApplicationException, V202502::OrderService::ApplicationException, V202502::PlacementService::ApplicationException, V202502::ProposalLineItemService::ApplicationException, V202502::ProposalService::ApplicationException, V202502::PublisherQueryLanguageService::ApplicationException, V202502::ReportService::ApplicationException, V202502::SegmentPopulationService::ApplicationException, V202502::SiteService::ApplicationException, V202502::StreamActivityMonitorService::ApplicationException, V202502::SuggestedAdUnitService::ApplicationException, V202502::TargetingPresetService::ApplicationException, V202502::TeamService::ApplicationException, V202502::UserService::ApplicationException, V202502::UserTeamAssociationService::ApplicationException, V202502::YieldGroupService::ApplicationException, V202505::AdRuleService::ApplicationException, V202505::AdjustmentService::ApplicationException, V202505::AdsTxtService::ApplicationException, V202505::AudienceSegmentService::ApplicationException, V202505::CdnConfigurationService::ApplicationException, V202505::CmsMetadataService::ApplicationException, V202505::CompanyService::ApplicationException, V202505::ContactService::ApplicationException, V202505::ContentBundleService::ApplicationException, V202505::ContentService::ApplicationException, V202505::CreativeService::ApplicationException, V202505::CreativeSetService::ApplicationException, V202505::CreativeTemplateService::ApplicationException, V202505::CreativeWrapperService::ApplicationException, V202505::CustomFieldService::ApplicationException, V202505::CustomTargetingService::ApplicationException, V202505::DaiAuthenticationKeyService::ApplicationException, V202505::DaiEncodingProfileService::ApplicationException, V202505::ForecastService::ApplicationException, V202505::InventoryService::ApplicationException, V202505::LabelService::ApplicationException, V202505::LineItemCreativeAssociationService::ApplicationException, V202505::LineItemService::ApplicationException, V202505::LineItemTemplateService::ApplicationException, V202505::LiveStreamEventService::ApplicationException, V202505::MobileApplicationService::ApplicationException, V202505::NativeStyleService::ApplicationException, V202505::NetworkService::ApplicationException, V202505::OrderService::ApplicationException, V202505::PlacementService::ApplicationException, V202505::ProposalLineItemService::ApplicationException, V202505::ProposalService::ApplicationException, V202505::PublisherQueryLanguageService::ApplicationException, V202505::ReportService::ApplicationException, V202505::SegmentPopulationService::ApplicationException, V202505::SiteService::ApplicationException, V202505::StreamActivityMonitorService::ApplicationException, V202505::SuggestedAdUnitService::ApplicationException, V202505::TargetingPresetService::ApplicationException, V202505::TeamService::ApplicationException, V202505::UserService::ApplicationException, V202505::UserTeamAssociationService::ApplicationException, V202505::YieldGroupService::ApplicationException, V202508::AdRuleService::ApplicationException, V202508::AdjustmentService::ApplicationException, V202508::AdsTxtService::ApplicationException, V202508::AudienceSegmentService::ApplicationException, V202508::CdnConfigurationService::ApplicationException, V202508::CmsMetadataService::ApplicationException, V202508::CompanyService::ApplicationException, V202508::ContactService::ApplicationException, V202508::ContentBundleService::ApplicationException, V202508::ContentService::ApplicationException, V202508::CreativeService::ApplicationException, V202508::CreativeSetService::ApplicationException, V202508::CreativeTemplateService::ApplicationException, V202508::CreativeWrapperService::ApplicationException, V202508::CustomFieldService::ApplicationException, V202508::CustomTargetingService::ApplicationException, V202508::DaiAuthenticationKeyService::ApplicationException, V202508::DaiEncodingProfileService::ApplicationException, V202508::ForecastService::ApplicationException, V202508::InventoryService::ApplicationException, V202508::LabelService::ApplicationException, V202508::LineItemCreativeAssociationService::ApplicationException, V202508::LineItemService::ApplicationException, V202508::LineItemTemplateService::ApplicationException, V202508::LiveStreamEventService::ApplicationException, V202508::MobileApplicationService::ApplicationException, V202508::NativeStyleService::ApplicationException, V202508::NetworkService::ApplicationException, V202508::OrderService::ApplicationException, V202508::PlacementService::ApplicationException, V202508::ProposalLineItemService::ApplicationException, V202508::ProposalService::ApplicationException, V202508::PublisherQueryLanguageService::ApplicationException, V202508::ReportService::ApplicationException, V202508::SegmentPopulationService::ApplicationException, V202508::SiteService::ApplicationException, V202508::StreamActivityMonitorService::ApplicationException, V202508::SuggestedAdUnitService::ApplicationException, V202508::TargetingPresetService::ApplicationException, V202508::TeamService::ApplicationException, V202508::UserService::ApplicationException, V202508::UserTeamAssociationService::ApplicationException, V202508::YieldGroupService::ApplicationException, V202511::AdRuleService::ApplicationException, V202511::AdjustmentService::ApplicationException, V202511::AdsTxtService::ApplicationException, V202511::AudienceSegmentService::ApplicationException, V202511::CdnConfigurationService::ApplicationException, V202511::CmsMetadataService::ApplicationException, V202511::CompanyService::ApplicationException, V202511::ContactService::ApplicationException, V202511::ContentBundleService::ApplicationException, V202511::ContentService::ApplicationException, V202511::CreativeService::ApplicationException, V202511::CreativeSetService::ApplicationException, V202511::CreativeTemplateService::ApplicationException, V202511::CreativeWrapperService::ApplicationException, V202511::CustomFieldService::ApplicationException, V202511::CustomTargetingService::ApplicationException, V202511::DaiAuthenticationKeyService::ApplicationException, V202511::DaiEncodingProfileService::ApplicationException, V202511::ForecastService::ApplicationException, V202511::InventoryService::ApplicationException, V202511::LabelService::ApplicationException, V202511::LineItemCreativeAssociationService::ApplicationException, V202511::LineItemService::ApplicationException, V202511::LineItemTemplateService::ApplicationException, V202511::LiveStreamEventService::ApplicationException, V202511::MobileApplicationService::ApplicationException, V202511::NativeStyleService::ApplicationException, V202511::NetworkService::ApplicationException, V202511::OrderService::ApplicationException, V202511::PlacementService::ApplicationException, V202511::ProposalLineItemService::ApplicationException, V202511::ProposalService::ApplicationException, V202511::PublisherQueryLanguageService::ApplicationException, V202511::ReportService::ApplicationException, V202511::SegmentPopulationService::ApplicationException, V202511::SiteService::ApplicationException, V202511::StreamActivityMonitorService::ApplicationException, V202511::SuggestedAdUnitService::ApplicationException, V202511::TargetingPresetService::ApplicationException, V202511::TeamService::ApplicationException, V202511::UserService::ApplicationException, V202511::UserTeamAssociationService::ApplicationException, V202511::YieldGroupService::ApplicationException
Instance Attribute Summary collapse
-
#array_fields ⇒ Object
readonly
Returns the value of attribute array_fields.
Instance Method Summary collapse
-
#initialize(exception_fault, registry) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(exception_fault, registry) ⇒ ApiException
Returns a new instance of ApiException.
30 31 32 33 34 35 36 37 38 |
# File 'lib/ad_manager_api/errors.rb', line 30 def initialize(exception_fault, registry) @array_fields ||= [] extractor = AdsCommon::ResultsExtractor.new(registry) exception_type = exception_fault[:application_exception_type] exception_data = (exception_type.nil?) ? exception_fault : extractor.extract_exception_data(exception_fault, exception_type) exception_data.each { |key, value| set_field(key, value) } super(exception_data[:message]) end |
Instance Attribute Details
#array_fields ⇒ Object (readonly)
Returns the value of attribute array_fields.
28 29 30 |
# File 'lib/ad_manager_api/errors.rb', line 28 def array_fields @array_fields end |