Exception: Voltaria::InvalidApiKeyError
- Inherits:
-
StandardError
- Object
- StandardError
- Voltaria::InvalidApiKeyError
- 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
-
#initialize(message = "API key must start with 'live_' or 'sandbox_', " \ "or an explicit :environment / :base_url must be supplied") ⇒ InvalidApiKeyError
constructor
A new instance of InvalidApiKeyError.
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( = "API key must start with 'live_' or 'sandbox_', " \ "or an explicit :environment / :base_url must be supplied") super end |