Exception: Veto::InvalidEntity

Inherits:
VetoError
  • Object
show all
Defined in:
lib/veto/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ InvalidEntity

Returns a new instance of InvalidEntity.



7
8
9
# File 'lib/veto/exceptions.rb', line 7

def initialize(errors)
  @errors = errors
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/veto/exceptions.rb', line 11

def message
  @errors.full_messages
end