Exception: Mxmnd::Unauthorized

Inherits:
ClientError show all
Defined in:
lib/mxmnd.rb

Instance Attribute Summary

Attributes inherited from ClientError

#code

Instance Method Summary collapse

Constructor Details

#initialize(code, error) ⇒ Unauthorized

Returns a new instance of Unauthorized.



60
61
62
63
# File 'lib/mxmnd.rb', line 60

def initialize(code, error)
  msg = "#{error} Set valid #{USER_ID_ENV_KEY} and #{LICENSE_KEY_ENV_KEY} environmental variables to authenticate with MaxMind API." 
  super(code, msg)
end