• File: HostedDomainException.php
  • Full Path: /var/www/crm_set/application/vendor/league/oauth2-google/src/Exception/HostedDomainException.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 455 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace League\OAuth2\Client\Exception;

/**
 * Exception thrown if the Google Provider is configured with a hosted domain that the user doesn't belong to
 */
class HostedDomainException extends \Exception
{
    /**
     * @param $configuredDomain
     *
     * @return static
     */
    public static function notMatchingDomain($configuredDomain): self
    {
        return new static("User is not part of domain '$configuredDomain'");
    }
}