Exception: Objective::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/objective/errors/validation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ValidationError

Returns a new instance of ValidationError.



7
8
9
# File 'lib/objective/errors/validation_error.rb', line 7

def initialize(errors)
  self.errors = errors
end

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



5
6
7
# File 'lib/objective/errors/validation_error.rb', line 5

def errors
  @errors
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/objective/errors/validation_error.rb', line 11

def to_s
  errors.message_list.join('; ').to_s
end