module Authentication module Errors PREVIOUSLY_SUSPENDED_MESSAGE = "It appears that your previous %s " \ "account was suspended. As such, we've taken measures to prevent you from " \ "creating a new account with %s and its community. If you " \ "think that there has been a mistake, please email us at %s, " \ "and we will take another look.".freeze class Error < StandardError end class ProviderNotFound < Error end class ProviderNotEnabled < Error end class PreviouslySuspended < Error def message format(PREVIOUSLY_SUSPENDED_MESSAGE, community_name: SiteConfig.community_name, community_email: SiteConfig.email_addresses[:contact]) end end end end