ameliabooking
/
vendor
/
mailgun
/
mailgun-php
/
src
/
Mailgun
/
Message
/
Exceptions
/
LimitExceeded.php
ameliabooking
/
vendor
/
mailgun
/
mailgun-php
/
src
/
Mailgun
/
Message
/
Exceptions
Last commit date
LimitExceeded.php
7 years ago
MissingRequiredParameter.php
7 years ago
RuntimeException.php
7 years ago
TooManyRecipients.php
7 years ago
LimitExceeded.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * Copyright (C) 2013 Mailgun |
| 5 | * |
| 6 | * This software may be modified and distributed under the terms |
| 7 | * of the MIT license. See the LICENSE file for details. |
| 8 | */ |
| 9 | |
| 10 | namespace Mailgun\Message\Exceptions; |
| 11 | |
| 12 | use Mailgun\Exception; |
| 13 | |
| 14 | class LimitExceeded extends \Exception implements Exception |
| 15 | { |
| 16 | public static function create($field, $limit) |
| 17 | { |
| 18 | return new self(sprintf('You\'ve exceeded the maximum (%d) %s for a single message.', $limit, $field)); |
| 19 | } |
| 20 | } |
| 21 |