Skip to content

Commit 217ed65

Browse files
raphael-geffroyfabpot
authored andcommitted
[Notifier] unsupported options exception
1 parent b510434 commit 217ed65

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Notifier\Exception;
13+
14+
use Symfony\Component\Notifier\Message\MessageOptionsInterface;
15+
16+
/**
17+
* @author Raphaël Geffroy <[email protected]>
18+
*/
19+
class UnsupportedOptionsException extends LogicException
20+
{
21+
public function __construct(string $transport, string $supported, MessageOptionsInterface $given)
22+
{
23+
parent::__construct(\sprintf('The "%s" transport only supports instances of "%s" for options (instance of "%s" given).', $transport, $supported, get_debug_type($given)));
24+
}
25+
}

0 commit comments

Comments
 (0)