on-strum/ruby-on-strum-healthcheck

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

Summary

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

module OnStrum
  module Healthcheck
    module Error
      module Configuration
        EnpointPattern = ::Class.new(::ArgumentError) do
          def initialize(arg_value, arg_name)
            super("#{arg_value} does not match a valid enpoint pattern for #{arg_name}")
          end
        end
      end
    end
  end
end