mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-29 16:36:07 +03:00
19 lines
410 B
PHP
19 lines
410 B
PHP
|
<?php
|
||
|
|
||
|
namespace Mailgun;
|
||
|
|
||
|
use Mailgun\Exception\InvalidArgumentException;
|
||
|
|
||
|
/**
|
||
|
* We need to override Webmozart\Assert because we want to throw our own Exception.
|
||
|
*
|
||
|
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
||
|
*/
|
||
|
class Assert extends \Webmozart\Assert\Assert
|
||
|
{
|
||
|
protected static function createInvalidArgumentException($message)
|
||
|
{
|
||
|
return new InvalidArgumentException($message);
|
||
|
}
|
||
|
}
|