mocktools/ruby-dns-mock

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

Summary

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

module DnsMock
  module Error
    RecordNotFound = ::Class.new(::StandardError) do
      def initialize(record_type, hostname)
        super("#{record_type.upcase} record not found for #{hostname} in predefined records dictionary")
      end
    end
  end
end