Exception: Ask::Auth::InvalidCredential

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ask/auth.rb

Instance Method Summary collapse

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