mocktools/ruby-dns-mock

View on GitHub
lib/dns_mock/error/random_free_port.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module DnsMock
  module Error
    RandomFreePort = ::Class.new(::RuntimeError) do
      def initialize(attempts)
        super("Impossible to find free random port in #{attempts} attempts")
      end
    end
  end
end