Sha256: d56a981e001ba5d51d7f4d1605b224ddf5c9bc6c34a63ea932e48389a6d2dbcb

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Support
    class NeverReachHere < ::ConvenientService::Exception
      ##
      # @param extra_message [String]
      # @return [void]
      #
      def initialize_with_kwargs(extra_message:)
        message = <<~TEXT
          The code that was supposed to be unreachable was executed.

          #{extra_message}
        TEXT

        initialize(message)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/support/never_reach_here.rb
convenient_service-0.19.0 lib/convenient_service/support/never_reach_here.rb
convenient_service-0.18.0 lib/convenient_service/support/never_reach_here.rb