Sha256: d21888f293c18efbc37818a39d3690d0a12135861c6237692ebb62c26fd2f524
Contents?: true
Size: 510 Bytes
Versions: 12
Compression:
Stored size: 510 Bytes
Contents
module EventSourcery module EventProcessing module ErrorHandlers class NoRetry include EventSourcery::EventProcessing::ErrorHandlers::ErrorHandler def initialize(processor_name:) @processor_name = processor_name end # Will yield the block and exit the process if an error is raised. def with_error_handling yield rescue => error report_error(error) Process.exit(false) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems