setToken is defined in the AuthenticationException parent class : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Core/Exception/AuthenticationException.php#L41