Exception: Marley::ValidationError

Inherits:
MarleyError show all
Defined in:
lib/marley/errors.rb

Instance Method Summary collapse

Methods inherited from MarleyError

#to_a

Constructor Details

#initialize(errors) ⇒ ValidationError

Returns a new instance of ValidationError.



22
23
24
# File 'lib/marley/errors.rb', line 22

def initialize(errors)
  self.class.details=errors
end

Instance Method Details

#log_errorObject



25
26
27
# File 'lib/marley/errors.rb', line 25

def log_error
  $log.error(self.class.details)
end