obstools/healthcheck-endpoint

View on GitHub
lib/healthcheck_endpoint/error/configuration/unknown_service.rb

Summary

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

module HealthcheckEndpoint
  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