Sha256: 2a1e6ba55ee8e3fda321f87cf40d4664c6ed2f0ed2617957687edb607be88cc9

Contents?: true

Size: 264 Bytes

Versions: 6

Compression:

Stored size: 264 Bytes

Contents

# frozen_string_literal: true

module Micro
  class Case
    class Safe < ::Micro::Case
      def call
        __call
      rescue => exception
        raise exception if Error::ByWrongUsage.check(exception)

        Failure(exception)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
u-case-2.6.0 lib/micro/case/safe.rb
u-case-2.5.0 lib/micro/case/safe.rb
u-case-2.4.0 lib/micro/case/safe.rb
u-case-2.3.1 lib/micro/case/safe.rb
u-case-2.3.0 lib/micro/case/safe.rb
u-case-2.2.0 lib/micro/case/safe.rb