OpenXE/classes/Modules/TOTPLogin/Exception/TOTPUserNonExistantException.php
2021-05-21 08:49:41 +02:00

17 lines
397 B
PHP

<?php
namespace Xentral\Modules\TOTPLogin\Exception;
class TOTPUserNonExistantException extends \RuntimeException implements TOTPLoginExceptionInterface
{
/**
* @param int $userId
*
* @return TOTPUserNonExistantException
*/
public static function fromUserId($userId)
{
return new TOTPUserNonExistantException("User ID {$userId} is not existent");
}
}