search for: validation_warn

Displaying 1 result from an estimated 1 matches for "validation_warn".

2011 Apr 10
0
Delayed_job: how to raise and log exceptions
I have this in a delayed job. def perform begin validation_warnings = Account.global_import_legacy_accounts(billing_run.legacy_master_iif_csv.path) rescue Exception => e BackgroundProcessStatus.update(:status => "Process failed. Error: #{e}.") end end I am finding that if an exception ocurrs somewhere in the code which is being ca...