NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

errors.py (2223B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\campaigns\client\errors.py
      2 
      3 
      4 class CampaignRequestError(RuntimeError):
      5 
      6     def __str__(self):
      7         return 'CampaignRequestError'
      8 
      9 
     10 class CampaignBadRequestError(CampaignRequestError):
     11 
     12     def __str__(self):
     13         return 'CampaignBadRequestError'
     14 
     15 
     16 class CampaignUnauthorizedError(CampaignRequestError):
     17 
     18     def __str__(self):
     19         return 'CampaignUnauthorizedError'
     20 
     21 
     22 class CampaignForbiddenError(CampaignRequestError):
     23 
     24     def __str__(self):
     25         return 'CampaignForbiddenError'
     26 
     27 
     28 class CampaignNotFoundError(CampaignRequestError):
     29 
     30     def __str__(self):
     31         return 'CampaignNotFoundError'
     32 
     33 
     34 class CampaignCommitmentNotRequiredError(CampaignRequestError):
     35 
     36     def __str__(self):
     37         return 'CampaignCommitmentNotRequiredError'
     38 
     39 
     40 class ContributionMethodRequestError(RuntimeError):
     41 
     42     def __str__(self):
     43         return 'ContributionMethodRequestError'
     44 
     45 
     46 class ContributionMethodBadRequestError(CampaignRequestError):
     47 
     48     def __str__(self):
     49         return 'ContributionMethodBadRequestError'
     50 
     51 
     52 class ContributionMethodNotFoundError(CampaignRequestError):
     53 
     54     def __str__(self):
     55         return 'ContributionMethodNotFoundError'
     56 
     57 
     58 class EventMatcherRequestError(RuntimeError):
     59 
     60     def __str__(self):
     61         return 'EventMatcherRequestError'
     62 
     63 
     64 class EventMatcherBadRequestError(EventMatcherRequestError):
     65 
     66     def __str__(self):
     67         return 'EventMatcherBadRequestError'
     68 
     69 
     70 class EventMatcherNotFoundError(EventMatcherRequestError):
     71 
     72     def __str__(self):
     73         return 'EventMatcherNotFoundError'
     74 
     75 
     76 class CampaignStatsRequestError(CampaignRequestError):
     77 
     78     def __str__(self):
     79         return 'CampaignRequestError'
     80 
     81 
     82 class GenericObjectiveNotFoundError(RuntimeError):
     83 
     84     def __str__(self):
     85         return 'GenericObjectiveNotFoundError()'
     86 
     87 
     88 class ParticipantStateError(RuntimeError):
     89 
     90     def __str__(self):
     91         return 'ParticipantStateError()'
     92 
     93 
     94 class ObjectiveStateError(RuntimeError):
     95 
     96     def __str__(self):
     97         return 'ObjectiveStateError()'
     98 
     99 
    100 class CampaignObjectiveGetStatsTimeoutError(CampaignRequestError):
    101 
    102     def __str__(self):
    103         return 'CampaignObjectiveGetStatsTimeoutError'