Exception: DevSuite::Utils::Construct::Component::Validator::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dev_suite/utils/construct/component/validator/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, message) ⇒ ValidationError

Returns a new instance of ValidationError.



11
12
13
14
15
# File 'lib/dev_suite/utils/construct/component/validator/validation_error.rb', line 11

def initialize(field, message)
  @field = field
  @message = message
  super("[#{field}] #{message}")
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



9
10
11
# File 'lib/dev_suite/utils/construct/component/validator/validation_error.rb', line 9

def field
  @field
end

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/dev_suite/utils/construct/component/validator/validation_error.rb', line 9

def message
  @message
end