1<?php
2/**
3* Exception thrown if an a pseudo element 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  * Exception thrown if an a pseudo element is found and the name is not known.
14  */
15  class UnknownPseudoElementException extends TokenException {
16
17    /**
18     * @param PhpCss\Scanner\Token $token
19     */
20    public function __construct(PhpCss\Scanner\Token $token) {
21      $this->_encounteredToken = $token;
22      parent::__construct(
23        $token,
24        sprintf(
25          'Parse error: Unknown pseudo element "%s" at character "%d".',
26          $token->content,
27          $token->position
28        )
29      );
30    }
31  }
32}
33