Exception: TaintedHash::UnexposedError
- Inherits:
-
StandardError
- Object
- StandardError
- TaintedHash::UnexposedError
- Defined in:
- lib/tainted_hash.rb
Instance Method Summary collapse
-
#initialize(action, extras) ⇒ UnexposedError
constructor
Builds an exception when a TaintedHash has some unexposed keys.
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 |