Sha256: 0596d48fdf2b74925bf737e0f86377edf46a964dcb169636b5006aa336ae2f83

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Micro
  class Case
    class Safe < ::Micro::Case
      def self.Flow(args)
        Flow::Reducer.build(Array(args))
      end

      def call
        super
      rescue => exception
        raise exception if Error::ByWrongUsage.check(exception)

        Failure(exception)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
u-case-2.0.0.pre.2 lib/micro/case/safe.rb