Module: MuchRails::SaveService::FailureResult

Defined in:
lib/much-rails/save_service.rb

Class Method Summary collapse

Class Method Details

.new(exception:, validation_errors:, **kargs) ⇒ Object



68
69
70
71
72
73
74
# File 'lib/much-rails/save_service.rb', line 68

def self.new(exception:, validation_errors:, **kargs)
  MuchResult.failure(
    exception: exception,
    validation_errors: validation_errors,
    **kargs,
  )
end