obstools/healthcheck-endpoint

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

Summary

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

module HealthcheckEndpoint
  module Error
    module Configuration
      NotCallableService = ::Class.new(::ArgumentError) do
        def initialize(service_name, services_setter)
          super("Service #{service_name} is not callable. All values for #{services_setter} should be a callable objects")
        end
      end
    end
  end
end