Sha256: 4e016d70f925c9084ea69e9db107ab1ef97296654cfbc06ecf778608bbcd0bdb
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Metrics/AbcSize module LightServiceExt module WithErrorHandler def with_error_handler(ctx:) @result = yield || ApplicationContext.make_with_defaults rescue StandardError => e ctx.record_raised_error(e) ctx.add_status(Status::COMPLETE) ctx.fail! ctx end end end # rubocop:enable Metrics/AbcSize
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
light-service-ext-0.1.9 | lib/light-service-ext/with_error_handler.rb |