Exception: Ask::Auth::InvalidCredential
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ask::Auth::InvalidCredential
- Defined in:
- lib/ask/auth.rb
Instance Method Summary collapse
-
#initialize(name, reason = "invalid or expired") ⇒ InvalidCredential
constructor
A new instance of InvalidCredential.
Constructor Details
#initialize(name, reason = "invalid or expired") ⇒ InvalidCredential
Returns a new instance of InvalidCredential.
29 30 31 32 |
# File 'lib/ask/auth.rb', line 29 def initialize(name, reason = "invalid or expired") super("Credential #{name.inspect} is #{reason}. " \ "Please update your token and try again.") end |