Exception: DevSuite::Utils::Construct::Component::Validator::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- DevSuite::Utils::Construct::Component::Validator::ValidationError
- Defined in:
- lib/dev_suite/utils/construct/component/validator/validation_error.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(field, message) ⇒ ValidationError
constructor
A new instance of ValidationError.
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, ) @field = field @message = super("[#{field}] #{}") end |
Instance Attribute Details
#field ⇒ Object (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 |
#message ⇒ Object (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 end |