* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ namespace PrestaShop\Module\PsAccounts\Exception\AccountLogin; use PrestaShop\OAuth2\Client\Provider\PrestaShopUser; class Oauth2Exception extends AccountLoginException { /** * @param string $message * @param PrestaShopUser|null $user * @param \Exception $previous */ public function __construct( $message = 'OAuth2 error', PrestaShopUser $user = null, \Exception $previous = null ) { parent::__construct($message, $user, $previous); $this->type = 'error_from_hydra'; } }