Sha256: d85e394cf424b30956894a44e0ce24a3073d70954592c0d5123afcb8f245011f

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

module Micro
  class Case
    class Safe < ::Micro::Case
      def self.__flow_builder
        Cases::Safe::Flow
      end

      def __call__
        __call!
      rescue => exception
        raise exception if Error.by_wrong_usage?(exception)

        Failure(result: exception)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
u-case-3.0.0.rc9 lib/micro/case/safe.rb
u-case-3.0.0.rc8 lib/micro/case/safe.rb
u-case-3.0.0.rc7 lib/micro/case/safe.rb
u-case-3.0.0.rc6 lib/micro/case/safe.rb
u-case-3.0.0.rc5 lib/micro/case/safe.rb
u-case-3.0.0.rc4 lib/micro/case/safe.rb