Exception: InvalidProxyParameters

Inherits:
Exception
  • Object
show all
Defined in:
lib/invalid_proxy_parameters.rb

Instance Method Summary collapse

Constructor Details

#initialize(parameters_hash = {}) ⇒ InvalidProxyParameters

Returns a new instance of InvalidProxyParameters.



2
3
4
5
6
7
8
9
# File 'lib/invalid_proxy_parameters.rb', line 2

def initialize parameters_hash={}
  parameters_string = []
  parameters_hash.each {|pair| parameters_string << ":#{pair.first} = #{pair.last.nil?? 'nil' : pair.last}" }
  super <<MESSAGE
The parameters that you passed to the Proxy were invalid.
#{parameters_string.sort * "\n"}
MESSAGE
end