Exception: InputSanitizer::ValueNotAllowedError
- Inherits:
-
ValidationError
- Object
- StandardError
- ValidationError
- InputSanitizer::ValueNotAllowedError
- Defined in:
- lib/input_sanitizer/errors.rb
Instance Attribute Summary
Attributes inherited from ValidationError
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(value) ⇒ ValueNotAllowedError
constructor
A new instance of ValueNotAllowedError.
Constructor Details
#initialize(value) ⇒ ValueNotAllowedError
Returns a new instance of ValueNotAllowedError.
48 49 50 51 |
# File 'lib/input_sanitizer/errors.rb', line 48 def initialize(value) @value = value super("is not included in the list") end |
Instance Method Details
#code ⇒ Object
44 45 46 |
# File 'lib/input_sanitizer/errors.rb', line 44 def code :inclusion end |