Exception: SchwabRb::Auth::InvalidHostname

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/schwab_rb/auth/init_client_login.rb

Overview

class TokenExchangeError < StandardError

def initialize(msg)
  super(msg)
end

end

Instance Method Summary collapse

Constructor Details

#initialize(hostname) ⇒ InvalidHostname

Returns a new instance of InvalidHostname.



57
58
59
60
# File 'lib/schwab_rb/auth/init_client_login.rb', line 57

def initialize(hostname)
  msg = "Disallowed hostname #{hostname}. init_client_login only allows callback URLs with hostname 127.0.0.1."
  super(msg)
end