lib/jflow/activity/task.rb in jflow-0.5.0 vs lib/jflow/activity/task.rb in jflow-0.5.1
- old
+ new
@@ -90,17 +90,10 @@
details: truncate(YAML.dump_stream(converted_exception, exception.backtrace), MAX_DETAILS_SIZE)
)
end
def handle_exception(exception)
- JFlow.configuration.error_handlers.each do |error_handler|
- begin
- error_handler.call(exception)
- rescue => e
- log_error("Error handler failed!")
- log_error(e.backtrace.join("\n")) unless e.backtrace.nil?
- end
- end
+ JFlow.handle_exception(exception)
end
private
def retryable?(exception)