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.



31
32
33
34
# File 'lib/ask/auth.rb', line 31

def initialize(name, reason = "invalid or expired")
  super("Credential #{name.inspect} is #{reason}. " \
        "Please update your token and try again.")
end