Exception: Voltaria::InvalidApiKeyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/voltaria/prefix_routing.rb

Overview

Raised when the API key prefix cannot be mapped to a known environment and no explicit environment / base_url was provided.

Instance Method Summary collapse

Constructor Details

#initialize(message = "API key must start with 'live_' or 'sandbox_', " \ "or an explicit :environment / :base_url must be supplied") ⇒ InvalidApiKeyError

Returns a new instance of InvalidApiKeyError.



30
31
32
33
# File 'lib/voltaria/prefix_routing.rb', line 30

def initialize(message = "API key must start with 'live_' or 'sandbox_', " \
                         "or an explicit :environment / :base_url must be supplied")
  super
end