Exception: InputSanitizer::ValueNotAllowedError

Inherits:
ValidationError
  • Object
show all
Defined in:
lib/input_sanitizer/errors.rb

Instance Attribute Summary

Attributes inherited from ValidationError

#field, #value

Instance Method Summary collapse

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

#codeObject



44
45
46
# File 'lib/input_sanitizer/errors.rb', line 44

def code
  :inclusion
end