on-strum/ruby-on-strum-healthcheck

View on GitHub
lib/on_strum/healthcheck/error/configuration/unknown_service.rb

Summary

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

module OnStrum
  module Healthcheck
    module Error
      module Configuration
        UnknownService = ::Class.new(::ArgumentError) do
          def initialize(service_name, services_setter)
            super("Unknown #{service_name} service name for #{services_setter}. You should define it in config.services firstly")
          end
        end
      end
    end
  end
end