Sha256: 362bf8cd6ad4101dd1733143ec5e8e0a693d03760b4c45cc5d9e3efa641310f0

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

# frozen_string_literal: true

module Micro
  module Service
    class Safe < Service::Base
      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-service-1.0.0 lib/micro/service/safe.rb