1 <?php
2 /**
3  * Exception thrown if a visitor finds something that it can not use.
4  *
5  * @license http://www.opensource.org/licenses/mit-license.php The MIT License
6  * @copyright Copyright 2010-2014 PhpCss Team
7  */
8 
9 namespace PhpCss\Exception {
10 
11   use Exception;
12   use PhpCss;
13 
14   /**
15    * Exception thrown if a visitor finds something that it can not use.
16    */
17   class NotConvertibleException
18     extends Exception
19     implements PhpCssException {
20 
21     public function __construct(string $source, string $target) {
22       parent::__construct(
23         sprintf(
24           'Can not convert %s to %s.', $source, $target
25         )
26       );
27     }
28   }
29 }
30