Sha256: 49846c45d2c210f089e41132374952ae57405d2ccfeadea511d7bb2c44b847ee

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

module Micro
  class Case
    class Safe < ::Micro::Case
      def call
        super
      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.1.1 lib/micro/case/safe.rb
u-case-2.1.0 lib/micro/case/safe.rb
u-case-2.0.0 lib/micro/case/safe.rb
u-case-2.0.0.pre.4 lib/micro/case/safe.rb
u-case-2.0.0.pre.3 lib/micro/case/safe.rb
u-case-2.0.0.pre lib/micro/case/safe.rb