| 1 | <?php | ||
| 5 | class UsageLimitExceeded extends GoogleApiException | ||
| 6 | { | ||
| 7 | /** @var string Reason can be any of: | ||
| 8 | - 'dailyLimitExceeded' : The Courtesy API limit for your project has been reached. | ||
| 9 | - 'userRateLimitExceeded': The per-user limit from the Developer Console has been reached. | ||
| 10 | - 'userRateLimitExceededUnreg': Limit when unregistered | ||
| 11 | - More? | ||
| 12 | */ | ||
| 13 | private $reason; | ||
| 14 | |||
| 15 | public function __construct($message, $reason) | ||
| 20 | |||
| 21 | public function getReason() | ||
| 25 | } | ||
| 26 |