1<?php
2/**
3* Exception thrown if an a pseudo class is found and the name is not known.
4*
5* @license http://www.opensource.org/licenses/mit-license.php The MIT License
6* @copyright Copyright 2010-2014 PhpCss Team
7*/
8
9namespace PhpCss\Exception {
10
11  use PhpCss;
12
13  /**
14  * Exception thrown if an a pseudo class is found and the name is not known.
15  */
16  class UnknownPseudoClassException extends TokenException {
17
18    /**
19     * @param PhpCss\Scanner\Token $token
20     */
21    public function __construct(PhpCss\Scanner\Token $token) {
22      parent::__construct(
23        $token,
24        sprintf(
25          'Parse error: Unknown pseudo class "%s" at character "%d".',
26          $token->content,
27          $token->position
28        )
29      );
30    }
31  }
32}
33