Api
3 years ago
Connection
3 years ago
Constants
7 years ago
Exception
3 years ago
HttpClient
3 years ago
Hydrator
3 years ago
Lists
7 years ago
Message
7 years ago
Messages
7 years ago
Model
7 years ago
Assert.php
7 years ago
Exception.php
7 years ago
HttpClientConfigurator.php
3 years ago
Mailgun.php
3 years ago
RequestBuilder.php
3 years ago
Assert.php
26 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; |
| 11 | |
| 12 | use Mailgun\Exception\InvalidArgumentException; |
| 13 | |
| 14 | /** |
| 15 | * We need to override Webmozart\Assert because we want to throw our own Exception. |
| 16 | * |
| 17 | * @author Tobias Nyholm <tobias.nyholm@gmail.com> |
| 18 | */ |
| 19 | final class Assert extends \Webmozart\Assert\Assert |
| 20 | { |
| 21 | protected static function reportInvalidArgument($message) |
| 22 | { |
| 23 | throw new InvalidArgumentException($message); |
| 24 | } |
| 25 | } |
| 26 |