Sha256: b06107a924db91caf205cadf8ef2fb3037cdbdebc54977d38d22982e684bd2ed

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 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

1 entries across 1 versions & 1 rubygems

Version Path
u-case-3.0.0 lib/micro/case/safe.rb