Exception: TaintedHash::UnexposedError

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

Instance Method Summary collapse

Constructor Details

#initialize(action, extras) ⇒ UnexposedError

Builds an exception when a TaintedHash has some unexposed keys. Useful for testing and production notification of weird parameters.



7
8
9
10
11
# File 'lib/tainted_hash.rb', line 7

def initialize(action, extras)
  @action = action
  @extras = extras
  super("Extra params for #{@action} in tainted hash: #{@extras.inspect}")
end