from fansifter_common.exceptions import ( FansifterError, ObjectNotFoundError, ) class AdReportingCampaignNotFoundError(ObjectNotFoundError): code = "ad_reporting_campaign_not_found" message = "Ad reporting campaign not found" class AdReportingInvalidCampaignIdError(FansifterError): code = "ad_reporting_invalid_campaign_id" message = "Ad reporting campaign id is invalid" status_code = 400 additional_properties = (("campaign_id", str),) def __init__(self, campaign_id: str): super().__init__() self.campaign_id = campaign_id class AdReportingCampaignIsNotAllowedError(FansifterError): code = "ad_reporting_campaign_is_not_allowed" message = "Ad reporting campaign is not allowed" status_code = 400 class AdReportingInvalidReportIdError(FansifterError): code = "ad_reporting_invalid_report_id" message = "Ad reporting report id is invalid" status_code = 400 additional_properties = (("report_id", str),) def __init__(self, report_id: str): super().__init__() self.report_id = report_id class AdReportingReportUniqueNameError(FansifterError): code = "ad_reporting_report_unique_name" message = "Report with this name already exists" status_code = 400 class AdReportingReportNotFoundError(ObjectNotFoundError): code = "ad_reporting_report_not_found" message = "Ad reporting report not found" class AdReportingReportLastCampaignDeleteError(FansifterError): code = "ad_reporting_report_last_campaign_delete_error" message = "Cannot delete the last campaign from the report" status_code = 400 class AdReportingAdSetNotFoundError(ObjectNotFoundError): code = "ad_reporting_ad_set_not_found" message = "Ad reporting ad set not found" class AdReportingAdNotFoundError(ObjectNotFoundError): code = "ad_reporting_ad_not_found" message = "Ad reporting ad not found"