Exception: Mxmnd::Unauthorized
- Inherits:
-
ClientError
- Object
- StandardError
- ClientError
- Mxmnd::Unauthorized
- Defined in:
- lib/mxmnd.rb
Instance Attribute Summary
Attributes inherited from ClientError
Instance Method Summary collapse
-
#initialize(code, error) ⇒ Unauthorized
constructor
A new instance of Unauthorized.
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 |