@@ -328,6 +328,15 @@ def __init__(self, message, cause, http_response):
328328 exceptions .InvalidArgumentError .__init__ (self , message , cause , http_response )
329329
330330
331+ class InvalidHostingLinkDomainError (exceptions .InvalidArgumentError ):
332+ """Hosting link domain in ActionCodeSettings is not authorized."""
333+
334+ default_message = 'Hosting link domain specified in ActionCodeSettings is not authorized'
335+
336+ def __init__ (self , message , cause , http_response ):
337+ exceptions .InvalidArgumentError .__init__ (self , message , cause , http_response )
338+
339+
331340class InvalidIdTokenError (exceptions .InvalidArgumentError ):
332341 """The provided ID token is not a valid Firebase ID token."""
333342
@@ -427,6 +436,7 @@ def __init__(self, message, cause=None, http_response=None):
427436 'EMAIL_NOT_FOUND' : EmailNotFoundError ,
428437 'INSUFFICIENT_PERMISSION' : InsufficientPermissionError ,
429438 'INVALID_DYNAMIC_LINK_DOMAIN' : InvalidDynamicLinkDomainError ,
439+ 'INVALID_HOSTING_LINK_DOMAIN' : InvalidHostingLinkDomainError ,
430440 'INVALID_ID_TOKEN' : InvalidIdTokenError ,
431441 'PHONE_NUMBER_EXISTS' : PhoneNumberAlreadyExistsError ,
432442 'TENANT_NOT_FOUND' : TenantNotFoundError ,
0 commit comments