Exception: Va::UnauthorizedAttribute
- Inherits:
-
Exception
- Object
- Exception
- Va::UnauthorizedAttribute
- Defined in:
- lib/va.rb
Instance Method Summary collapse
-
#initialize(attr, validator) ⇒ UnauthorizedAttribute
constructor
A new instance of UnauthorizedAttribute.
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 |