Exception: HumanError::Errors::DuplicateAuthenticationError
- Inherits:
-
RequestError
- Object
- RuntimeError
- RequestError
- HumanError::Errors::DuplicateAuthenticationError
- Includes:
- AuthenticationError
- Defined in:
- lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#provider_user_id ⇒ Object
Returns the value of attribute provider_user_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes included from HumanError::Error
#api_error_documentation_url, #api_version, #code, #knowledgebase_article_id, #knowledgebase_url, #message
Instance Method Summary collapse
- #developer_details ⇒ Object
- #developer_message ⇒ Object
- #friendly_message ⇒ Object
- #http_status ⇒ Object
Methods inherited from RequestError
Methods included from HumanError::Error
#customer_support_uri, #developer_documentation_uri, included, #initialize, #to_json, #to_s
Instance Attribute Details
#provider ⇒ Object
Returns the value of attribute provider.
9 10 11 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 9 def provider @provider end |
#provider_user_id ⇒ Object
Returns the value of attribute provider_user_id.
9 10 11 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 9 def provider_user_id @provider_user_id end |
#user_id ⇒ Object
Returns the value of attribute user_id.
9 10 11 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 9 def user_id @user_id end |
Instance Method Details
#developer_details ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 21 def developer_details { 'provider' => provider, 'provider_user_id' => provider_user_id, 'user_id' => user_id, } end |
#developer_message ⇒ Object
17 18 19 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 17 def 'The authentication you attempted to register has already been registered by another user. We do not currently support allowing multiple users to be connected to the same authentication.' end |
#friendly_message ⇒ Object
29 30 31 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 29 def "Sorry! Someone else has already registered this #{provider} login." end |
#http_status ⇒ Object
13 14 15 |
# File 'lib/human_error/errors/authentication_errors/duplicate_authentication_error.rb', line 13 def http_status 409 end |