Exception: Osso::Error::NoAccountForOAuthClientError

Inherits:
OAuthError
  • Object
show all
Defined in:
lib/osso/error/oauth_error.rb

Instance Method Summary collapse

Methods inherited from OAuthError

#docs_url

Methods inherited from Base

#docs_url

Constructor Details

#initialize(domain: 'the requested domain') ⇒ NoAccountForOAuthClientError

Returns a new instance of NoAccountForOAuthClientError.



12
13
14
15
# File 'lib/osso/error/oauth_error.rb', line 12

def initialize(domain: 'the requested domain')
  super
  @domain = domain
end

Instance Method Details

#messageObject



17
18
19
20
21
# File 'lib/osso/error/oauth_error.rb', line 17

def message
  "No customer account exists for #{@domain} and OAuth client pair. " \
    "Review our OAuth documentation, and check you're using the correct OAuth client identifier. " \
    'This usually suggests an engineering issue with your ENV variables.'
end