Sha256: 45993c6d58b4e906b970491999ab0d62987fa40449369d8668e484513d065c7c
Contents?: true
Size: 406 Bytes
Versions: 29
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true module Mihari module Mixins module ErrorNotification # # Send an exception notification if there is any error in a block # # @return [Nil] # def with_error_notification yield rescue StandardError => e Mihari.logger.error e Sentry.capture_exception(e) if Sentry.initialized? end end end end
Version data entries
29 entries across 29 versions & 1 rubygems