Exception: Va::UnauthorizedAttribute

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

Instance Method Summary collapse

Constructor Details

#initialize(attr, validator) ⇒ UnauthorizedAttribute

Returns a new instance of UnauthorizedAttribute.



108
109
110
111
# File 'lib/va.rb', line 108

def initialize(attr, validator)
  msg = "Unauthorized attribute for '#{validator.class}': '#{attr}'"
  super(msg)
end