Exception: RestDSL::UndefinedEnvironmentError

Inherits:
ErrorBase
  • Object
show all
Defined in:
lib/rest_dsl/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(environment, available_envs) ⇒ UndefinedEnvironmentError

Returns a new instance of UndefinedEnvironmentError.



9
10
11
12
# File 'lib/rest_dsl/errors.rb', line 9

def initialize(environment, available_envs)
  message = "Undefined environment, #{environment}, known environments: #{available_envs.keys.join(', ')}"
  super(message)
end